NAME

cs::TM - convenience routines struct-tm manipulation


SYNOPSIS

        use cs::TM;


DESCRIPTION

Trivial wrapper for the struct-tm array returned by localtime() and gmtime().


GENERAL FUNCTIONS


OBJECT ACCESS AND CREATION

new cs::TM()

Obtain a new object with today's localtime data.

new cs::TM(gmt)

Obtain a new object from the specified GMT time, rendered in local time.


OBJECT METHODS

Sec(emitlocaltime), Min(emitlocaltime), Hour(emitlocaltime), MDay(emitlocaltime), Mon(emitlocaltime), WDay(emitlocaltime), YDay(emitlocaltime), Year(emitlocaltime), YY(emitlocaltime)

Return this cs::TM's seconds, minutes, hours, day of month (1..31), month (1..12), day of week (Sun=0,.., Sat=6), day of year (0..365), year, short year (year-1900), 2-digit year, whether daylight saving (aka summer) time is in effect from this date's TM hash, respectively.


SEE ALSO

cs::DMY(), perlfunc(1)


AUTHOR

Cameron Simpson <cs@zip.com.au> 04dec2002