[prog] Perl dates

k.clair k at klerp.net
Thu Feb 20 09:20:29 EST 2003


Hmmmm.  That is interesting.

What sort of system are you running perl on, and what version of perl?

My results turn out the same (on linux with perl 5.8):

kclair at home:~$ perl -e 'print localtime()."\n"; print localtime(time)."\n";'
Thu Feb 20 08:21:36 2003
Thu Feb 20 08:21:36 2003

kristina

On Thu, Feb 20, 2003 at 12:25:03PM +1100, Sue Stones wrote:
- yes
- ----- Original Message -----
- From: "k.clair" <k at klerp.net>
- To: "Sue Stones" <suzo at bigpond.net.au>
- Cc: <programming at linuxchix.org>
- Sent: Thursday, February 20, 2003 7:01 AM
- Subject: Re: [prog] Perl dates
- 
- 
- On Wed, Feb 19, 2003 at 11:41:30PM +1100, Sue Stones wrote:
- -
- - Interestingly using localtime without calling time first gave me a
- compleatly
- - other date than the current one.
- 
- Do you mean using localtime() as opposed to localtime(time) ?
- 
- kristina
- 
- ### my gpg key can be found here:
- http://www.klerp.net/gpgkey
- lynx --dump --source http://www.klerp.net/gpgkey | gpg import
- Key fingerprint = 6B2F AB26 A8A9 DE4D 91FD  8E93 7A6B 387A 2795 714B
- 
- 
- 
- _______________________________________________
- Programming mailing list
- Programming at linuxchix.org
- http://mailman.linuxchix.org/mailman/listinfo/programming

### my gpg key can be found here:
http://www.klerp.net/gpgkey
lynx --dump --source http://www.klerp.net/gpgkey | gpg import
Key fingerprint = 6B2F AB26 A8A9 DE4D 91FD  8E93 7A6B 387A 2795 714B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://linuxchix.org/pipermail/programming/attachments/20030220/04fae9cd/attachment.pgp


More information about the Programming mailing list