--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<acronym class="normal" title="Idle since 2016-05-27 1:40:50">idle</acronym>
$ date -R
Fri, 27 May 2016 09:44:48 +0800
format_queue_stats({idle_since, Value}) ->
[{idle_since, now_to_str(Value)}];
format_channel_stats({idle_since, Value}) ->
{idle_since, now_to_str(Value)};
now_to_str(MilliSeconds) ->
BaseDate = calendar:datetime_to_gregorian_seconds({{1970, 1, 1},
{0, 0, 0}}),
Seconds = BaseDate + (MilliSeconds div 1000),
{{Y, M, D}, {H, Min, S}} = calendar:gregorian_seconds_to_datetime(Seconds),
print("~w-~2.2.0w-~2.2.0w ~w:~2.2.0w:~2.2.0w", [Y, M, D, H, Min, S]).
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.