Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Getting Epoch from year, woy and dow...

by fglock (Vicar)
on Jan 27, 2005 at 18:57 UTC ( [id://425695]=note: print w/replies, xml ) Need Help??


in reply to Getting Epoch from year, woy and dow...

This will print the list of epochs for all mondays in the year:

use Date::Tie; use strict; tie my %dt, 'Date::Tie', weekday => 1, week => 1, weekyear => 2005, hour => 0, minute => 0, second => 0; while ( $dt{weekyear} == 2005 ) { print $dt{epoch}, "\n"; $dt{week}++; } 1104710400 1105315200 1105920000 1106524800 1107129600 1107734400 ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://425695]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-19 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found