Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
Gossamer Links
:
Development, Plugins and Globals
:
current year global
Previous Thread
Next Thread
Print Thread
View Threaded
Jan 18, 2003, 3:14 AM
klauslovgreen
Enthusiast
(671 posts)
Jan 18, 2003, 3:14 AM
Post #1 of 5
Views: 2394
Shortcut
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
Jan 18, 2003, 3:17 AM
Paul
Veteran
(19537 posts)
Jan 18, 2003, 3:17 AM
Post #2 of 5
Views: 2342
Shortcut
Re: [klauslovgreen] current year global
In reply to
Last
edited
by:
Paul
: Jan 18, 2003, 6:04 AM
Jan 18, 2003, 5:50 AM
klauslovgreen
Enthusiast
(671 posts)
Jan 18, 2003, 5:50 AM
Post #3 of 5
Views: 2337
Shortcut
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
Jan 18, 2003, 6:04 AM
Paul
Veteran
(19537 posts)
Jan 18, 2003, 6:04 AM
Post #4 of 5
Views: 2328
Shortcut
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;
}
Jan 18, 2003, 6:09 AM
klauslovgreen
Enthusiast
(671 posts)
Jan 18, 2003, 6:09 AM
Post #5 of 5
Views: 2336
Shortcut
Re: [Paul] current year global
In reply to
Works!
Thanks Paul
http://www.ameinfo.com
Previous Thread
Next Thread
Print Thread
View Threaded