philiotis has asked for the wisdom of the Perl Monks concerning the following question:
#Returns the Zulu data type #Parameters: Number of minutes time will be offset - 0 for now sub getBinary_Zulu { my $offset = $_[0]; my $msec = 0; my $epoch_time = time(); my $offset_time = $epoch_time + ($offset * 60); my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($ +offset_time); $year += 1900; print "$msec,$sec,$min,$hour,$yday,$year \n"; #debugging only return pack("I6", $msec,$sec,$min,$hour,$yday,$year); }#end getBinary_Zulu
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: day of year
by fglock (Vicar) on Nov 26, 2002 at 17:04 UTC | |
Re: day of year
by lemming (Priest) on Nov 26, 2002 at 17:07 UTC | |
Re: day of year
by davorg (Chancellor) on Nov 26, 2002 at 20:26 UTC | |
Re: day of year
by pg (Canon) on Nov 26, 2002 at 17:08 UTC | |
Re: day of year
by tadman (Prior) on Nov 26, 2002 at 18:07 UTC |