Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.2K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Java
9.3K+ articles
Ruby
1.2K+ articles
Ruby-Methods
926+ articles
Ruby Time-class
62 posts
Recent Articles
Popular Articles
Ruby | Time gmt_offset function
Last Updated: 06 January 2020
Time#gmt_offset() is a Time class method which returns the offset in seconds between the timezone of UTC and time.Syntax: Time.gmt_offset()Parameter: Time valuesReturn: of...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time min function
Last Updated: 07 January 2020
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 valuesReturn: minute of the hour fro...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time localtime() function
Last Updated: 07 January 2020
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) by time conversion using ...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time iso8601 function
Last Updated: 07 January 2020
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 valuesReturn: time ...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time nsec function
Last Updated: 07 January 2020
Time#nsec() : nsec() is a Time class method which returns the number of nanoseconds for time.Syntax: Time.nsec()Parameter: Time valuesReturn: number of nanoseconds for tim...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time rfc2822 function
Last Updated: 07 January 2020
Time#rfc2822() : rfc2822() is a Time class method which returns the string which represents the time as date-time defined by RFC 2822Format:day-of-week, DD month-name CCYY...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time rfc822 function
Last Updated: 07 January 2020
Time#rfc822() : rfc822() is a Time class method which returns the string which represents the time as date-time defined by RFC 822Syntax: Time.rfc822()Parameter: Time valu...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time to_f function
Last Updated: 07 January 2020
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: Time.to_f()Parameter: Time values...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time to_r function
Last Updated: 07 January 2020
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()Parameter: Time valuesReturn...
read more
Ruby
Ruby Time-class
Ruby | Time to_s function
Last Updated: 07 January 2020
Time#to_s() : to_s() is a Time class method which returns the string representation of the time. Syntax: Time.to_s()Parameter: Time valuesReturn: the string representation...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time tv_sec function
Last Updated: 07 January 2020
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 valuesReturn: the...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time to_time function
Last Updated: 07 January 2020
Time#to_time() : to_time() is a Time class method which returns the time object itself.Syntax: Time.to_time()Parameter: Time valuesReturn: the time object itself.Example #...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time tv_nsec function
Last Updated: 07 January 2020
Time#tv_nsec() is a Time class method which returns the number of nanoseconds for time. Syntax: Time.tv_nsec()Parameter: Time valuesReturn: the number of nanoseconds for t...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time monday? function
Last Updated: 07 January 2020
Time#monday?() is a Time class method which checks whether the time represents Monday.Syntax: Time.monday?()Parameter: Time valuesReturn: true - if the time represents Mon...
read more
Ruby
Ruby-Methods
Ruby Time-class
Ruby | Time round function
Last Updated: 07 January 2020
Time#round() is a Time class method which returns a new time object by rounding sub seconds to a given precision in decimal digits.Syntax: Time.round()Parameter: Time valu...
read more
Ruby
Ruby-Methods
Ruby Time-class
1
2
3
4
5
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !