NAME
Sidef::Time::Time
DESCRIPTION
This modules creates a new Time object.
SYNOPSIS
var time = (Time.new(sec));
var lday = (time.local.day);
METHODS
dump
Time.dump() -> Obj
Return the
gmTime
Time.new.gmTime() -> Sidef::Time::Gmtime
Return a gmtime object.
localtime
Alias for local()
.
micro
Time.micro() -> Obj
Return the
Aliases: micro_sec, microSec, microTime, micro_seconds, microSeconds
new
Time.new(number) -> Time
Create a new Time object. The argument is the number of seconds elapsed since the beginning of the current epoch (1900). When no argument is specified, the current time is used.
time_now
Alias for timeNow()
.
time
Time.time() -> Number
Return the time value stored inside the Time object.