Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Perl Programming/Keywords/time

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Perl tied times Keywords The time keyword time returns the number of non-leap seconds since the beginning of the epoch, which is on most systems 1970-01-01 00:00:00 UTC. Syntax time Examples The code $time = time; print $time . " s, " . $time/60 . " min, " . $time/3600 . " h\n"; print $time/86400 . " d, " . $time/2629743.84 . " months, " . $time/31556926.08 . " y\n"; returns on Windows something like: 1424097849 s, 23734964.15 min, 395582.735833333 h 16482.6139930556 d, 541.534816942475 months, 45.1279014118729 y See also alarm localtime sleep times Perl tied times Keywords