File: epoch2localtime

package info (click to toggle)
munin 2.0.25-1+deb8u3~bpo70+1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 6,184 kB
  • sloc: perl: 11,818; sh: 3,545; java: 1,880; makefile: 767; python: 272
file content (6 lines) | stat: -rwxr-xr-x 132 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
#! /usr/bin/perl
# Convert epoch to human readable time

while (my $epoch = shift) {
        print "" . localtime($epoch) . "\n";
}