[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] guestbook.pl question (date)



it is not overkill! you guys are great - (again perl goes with generous and
creative folk) - so if i am expecting an international audience, how do i
handle the various time zones? or is a guestbook only expected to track
local time? (the logisitics are starting to get strange now that i think
about it - i am making this guestbook for a server that is in another
country) i assume PST below is west coast time usa


>I just made the following subroutine:
>####
>###################################################################
>#return a current date stamp such as: "Tue, 09 Jan 96 5:06pm PST" #
>###################################################################
>sub dateStamp {
<snip>
>  "$theWeekday, $monthday $theMonth $year $hour:$theMins$ampm PST";
>}
<snip>
>
>its maybe overkill, but it gives a nice date stamp.
>kenn
>
and john springer said
>I use this...
>
>sub start{
>local($wday,$yday,$isdst); #don't need these
>        ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
>localtime(time);