This is tha date command for php
$xronos=date("l dS of F h:i:s A");
Whats the equivalent for perl?
Date in Perl
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Hi could you please post non-PHP programming questions (e.g. like those about Perl) in the Miscellaneous forum because, as it says in the description,:
Mac
I've moved this post here because it really is the most appropriate place for it.Miscellaneous
XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).
Mac
you can fetch the current time withif you want the single parts trythen you can rearrange them as you like.
http://www.cpan.org/modules/index.html lists many modules for date/time-handling.
see also: http://www.perldoc.com/perl5.8.0/pod/fu ... ltime.html
Code: Select all
my $now = localtime time;Code: Select all
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime time;http://www.cpan.org/modules/index.html lists many modules for date/time-handling.
see also: http://www.perldoc.com/perl5.8.0/pod/fu ... ltime.html