Skip to content

Tag Archives: Ruby Time-class

Time#to_i() is a Time class method which returns the value of time as an integer number of seconds since the Epoch. Syntax: Time.to_i() Parameter: Time… Read More
Time#succ() : succ() is a Time class method which returns the string which returns a new Time object, one second later than time. Syntax: Time.succ()… Read More
Time#subsec() is a Time class method which returns the fraction for time as a rational number. Syntax: Time.subsec() Parameter: Time values Return: the fraction for… Read More
Time#strftime() is a Time class method which returns the time format according to the directives in the given format string. Syntax: Time.strftime() Parameter: Time values… Read More
Time#thursday?() is a Time class method which checks whether the time represents thursday. Syntax: Time.thursday?() Parameter: Time values Return: true – if the time represents… Read More
Time#min() : min() is a Time class method which returns the minute of the hour from 0 to 59 for time. Syntax: Time.min() Parameter: Time… Read More
Time#localtime() : localtime() is a Time class method which returns local time (using the local time zone in effect at the creation time of time)… Read More
Time#iso8601() : iso8601() is a Time class method which returns the time in 8601 format as per the ISO standards. Syntax: Time.iso8601() Parameter: Time values… Read More
Time#nsec() : nsec() is a Time class method which returns the number of nanoseconds for time. Syntax: Time.nsec() Parameter: Time values Return: number of nanoseconds… Read More
Time#rfc2822() : rfc2822() is a Time class method which returns the string which represents the time as date-time defined by RFC 2822 Format: day-of-week, DD… Read More
Time#rfc822() : rfc822() is a Time class method which returns the string which represents the time as date-time defined by RFC 822 Syntax: Time.rfc822() Parameter:… Read More
Time#to_f() : to_f() is a Time class method which returns the value of time as a floating point number of seconds since the Epoch. Syntax:… Read More
Time#to_r() : to_r() is a Time class method which returns the value of time as a rational number of seconds since the Epoch. Syntax: Time.to_r()… Read More
Time#to_s() : to_s() is a Time class method which returns the string representation of the time. Syntax: Time.to_s() Parameter: Time values Return: the string representation… Read More
Time#tv_sec() is a Time class method which returns the value of time as an integer number of seconds since the Epoch. Syntax: Time.tv_sec() Parameter: Time… Read More

Start Your Coding Journey Now!