Dates and Times in Perl

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

Dates and Times in Perl

Learn how to use date and times in Perl.
http://blog.codebeach.com/2008/02/dates-and-times-in-perl.htmlhttp://blog.codebeach.com/20...
  • Total Hits: 19504

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 149 votes

  • Category: Perl & CGI/Getting Started

  • Submitted on: 2008-03-16 00:59:39

  • Submitted By: Devesh Khanna

  • Set as Favorite

Description:

There are two ways of measuring time: ages from today, and counting from an arbitrary date in the past. So, for example, you can get that a file is 28.5 days old, or you can find out that the file was created at 3:53 PM on January 21, 1985. In Perl, you measure the latter in seconds from “the start of the epoch”.

The epoch is simply the earliest date your computer can use. For most Unix computers, this is the midnight before January 1, 1970, universal standard time. On the Macintosh, this is the midnight before January 1, 1904. You don’t really need to worry about that, since you’ll generally be feeding the number of seconds into special built-in functions that take the seconds and return information about that date that number represents.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 37.58%  56
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.74%  16
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 12.08%  18
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.41%  17
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.19%  42

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements