Gossamer Forum
Quote Reply
current year global
Is there a global that returns the current year (like the date global - only the year alone)

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] current year global In reply to
 

Last edited by:

Paul: Jan 18, 2003, 6:04 AM
Quote Reply
Re: [Paul] current year global In reply to
Hi Paul,

It returns '1'?
- I would like to yyyy (2003)

Thanks in advance
Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] current year global In reply to
Sorry, that was just a mistake in the code...try:

Code:
sub {
my ($date) = scalar(localtime) =~ /(\d{4})$/;
return $date;
}
Quote Reply
Re: [Paul] current year global In reply to
Works!

Thanks Paul

http://www.ameinfo.com