The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Sidef::Time::Gmtime

DESCRIPTION

Returned values are localized for the standard Greenwich time zone.

SYNOPSIS

    var time = Time.gmtime;

INHERITS

Inherits methods from:

    * Sidef::Object::Object

METHODS

ctime

Time.gmtime.ctime() -> String

Return the ctime(3) value:

    Time.gmtime.ctime    # e.g., "Thu Jul 18 17:39:28 2013"

day

Time.gmtime.day() -> Number

Aliases: mday().

Return the day of the month.

hour

Time.gmtime.hour() -> Number

Return the hours of the specified time.

min

Time.gmtime.min() -> Number

Return the minutes of the specified time.

mon

Time.gmtime.mon() -> Number

Aliases: month().

Return the month in the range 0..11, with 0 indicating January and 11 indicating December.

sec

Time.gmtime.sec() -> Number

Return the seconds of the specified time.

strftime

Time.gmtime.strftime(String) -> String

Format the time with POSIX::strftime().

    Time.gmtime.strftime("%a %b %e %H:%M:%S %Y")    # e.g., "Thu Jul 18 17:27:50 2013"

For more details, see: man strftime

wday

Time.gmtime.wday() -> Number

Return the day of the week, with 0 indicating Sunday and 3 indicating Wednesday.

yday

Time.gmtime.yday() -> Number

Return the day of the year, in the range 0..364 (or 0..365 in leap years.)

year

Time.gmtime.year() -> Number

Return the number of years since 1900.

To get a 4-digit year, write:

   var year = (Time.gmtime.year + 1900);