I have some iptables rules that produces entries in files such as /proc/self/net/xt_recent/DEFAULT
The files contain entries like the following:

src=203.0.113.123 ttl: 64 last_seen: 122885298 oldest_pkt: 4 122852593, 12285459
5, 122858603, 122885298, 122822088, 122823091, 122825095, 122829189, 122829439, 
122829829, 122830078, 122830341, 122830591, 122831092, 122832095, 122834099, 122
835401, 122835651, 122836152, 122837155, 122838498, 122838748, 122839249, 122840
078, 122840328, 122840829, 122841831, 122843835, 122847843, 122850840, 122851090
, 122851591

Apparently those times are 'jiffy' and not 'epoch'. I have no idea where to start in converting jiffies to a normal time format. What module(s) can help to convert them to usable times?


In reply to Converting jiffies to normal time by mldvx4

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.