Sidef::Time::Localtime
Returned values are localized for your current location.
var time = Time.local;
Inherits methods from:
* Sidef::Time::Gmtime
Time.local.ctime() -> String
Return the ctime(3) value:
Time.local.ctime # e.g., "Thu Jul 18 20:39:47 2013"
Alias for day().
day()
Time.local.hour() -> Number
Return the hours of the specified time.
Time.local.isdst() -> Number
Return 1 if the specified time occurs during Daylight Saving Time, 0 otherwise.
Time.local.min() -> Number
Return the minutes of the specified time.
Alias for mon().
mon()
Time.local.sec() -> Number
Return the seconds of the specified time.
Time.local.wday() -> Number
Return the day of the week, with 0 indicating Sunday and 3 indicating Wednesday.
Time.local.yday() -> Number
Return the day of the year, in the range 0..364 (or 0..365 in leap years.)
Time.local.year() -> Number
Return the number of years since 1900.
To get a 4-digit year, write:
var year = (Time.gmtime.year + 1900);
To install Sidef, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sidef
CPAN shell
perl -MCPAN -e shell install Sidef
For more information on module installation, please visit the detailed CPAN module installation guide.