NAME
Sidef::Time::Localtime
DESCRIPTION
Returned values are localized for your current location.
SYNOPSIS
var time = Time.local;
INHERITS
Inherits methods from:
* Sidef::Time::Gmtime
METHODS
ctime
Time.local.ctime() -> String
Return the ctime(3) value:
Time.local.ctime # e.g., "Thu Jul 18 20:39:47 2013"
mday
Alias for day()
.
hour
Time.local.hour() -> Number
Return the hours of the specified time.
isdst
Time.local.isdst() -> Number
Return 1 if the specified time occurs during Daylight Saving Time, 0 otherwise.
min
Time.local.min() -> Number
Return the minutes of the specified time.
month
Alias for mon()
.
sec
Time.local.sec() -> Number
Return the seconds of the specified time.
wday
Time.local.wday() -> Number
Return the day of the week, with 0 indicating Sunday and 3 indicating Wednesday.
yday
Time.local.yday() -> Number
Return the day of the year, in the range 0..364 (or 0..365 in leap years.)
year
Time.local.year() -> Number
Return the number of years since 1900.
To get a 4-digit year, write:
var year = (Time.gmtime.year + 1900);