I am trying to get the current datetime. I use the following command for formating:
Following the format listed in the GT help file:
%yy% two digit year as in 99
%mmmm% long month name as in January
%mmm% short month name as in Jan
%mm% numerical month name as in 01
%dddd% long day name as in Sunday
%ddd% short day name as in Sun
%dd% numerical date
%hh% two digit hour
%mm% two digit minute
%ss% two digit secondUnfortunately, it seems either I am not understanding the format to get the minutes (%mm%), or it is the same as the numerical month (which seems to be the problem).
In either case, I keep getting 02 for my %mm% minutes, which is the current month.
Is this a problem with me? a typo in the docs, or a bug in the module?
Thanks for any help....
AlexJ
Code:
GT::Date::date_set_format('%yyyy%-%mm%-%dd% %hh%:%mm%:%ss%');Code:
%yyyy% four digit year as in 1999 %yy% two digit year as in 99
%mmmm% long month name as in January
%mmm% short month name as in Jan
%mm% numerical month name as in 01
%dddd% long day name as in Sunday
%ddd% short day name as in Sun
%dd% numerical date
%hh% two digit hour
%mm% two digit minute
%ss% two digit second
In either case, I keep getting 02 for my %mm% minutes, which is the current month.
Is this a problem with me? a typo in the docs, or a bug in the module?
Thanks for any help....
AlexJ