in reply to Re: gmdate perl
in thread gmdate perl

Well I think that it sets the time to GMT.

Replies are listed 'Best First'.
Re^3: gmdate perl
by Anonymous Monk on Mar 04, 2012 at 10:35 UTC

    Well I think that it sets the time to GMT.

    Lets see, searching Class::Date for "gmdate"

    use Class::Date qw(:errors date localdate gmdate now -DateParse -EnvC);

    $date = gmdate "2001-11-12 17:13";

    You can create a date object by the "date", "localdate" or "gmdate" function, or by calling the Class::Date constructor.

    "gmdate $x" is equivalent to "date $x, $Class::Date::GMT_TIMEZONE".

    It could be

      Wow! I am gaining so much of knowledge. Thanks :)