Categories: None [Edit]
timestamp
== Time.timestamp
Defines Time::timestamp and Time::unix_timestamp.
See the original discussion at {Ruby-Lang}[https://bugs.ruby-lang.org/issues/8096]
:call-seq:
Time::timestamp -> Integer
Returns a nanosecond-precision timestamp from the system's monotonic
clock. Note that the resolution of the measured time is system-
dependent (i.e. while the value displayed is always an integer number
of nanoseconds, the values may not necessarily change in increments of
exactly one).
This time value does not correlate to any absolute, real-world time
system; it is only useful for measuring relative (or elapsed) times at
a high granularity. For example, benchmark measurements.
:call-seq:
Time::unix_timestamp -> Integer
Time::unix_time -> Integer
Returns the current real-world time as a whole number of seconds since
the Epoch (1-Jan-1970).
:call-seq:
Time::unix_microtime -> Float
Returns the current real-world time as a floating-point number of
seconds since the Epoch (1-Jan-1970).
Total
Ranking: 37,519 of 187,435
Downloads: 32,169
Daily
Ranking: 127,178 of 187,414
Downloads: 0
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 1 | 2,994,673,875 | bundler |
| 10 | 1,159,510,802 | rake |
| 1,577 | 21,734,551 | rake-compiler |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | phluid61 |