RubyGems Navigation menu

timestamp 1.0.2

Time.timestamp

Defines Time::timestamp and Time::unix_timestamp.

See the original discussion at Ruby-Lang

: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).

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 1.0.2 - July 19, 2013 (7.0 KB)
  2. 1.0.1 - April 13, 2013 (5.5 KB)
  3. 1.0.0 - March 25, 2013 (5.5 KB)
  4. 0.3.0 - March 17, 2013 (4.5 KB)
  5. 0.2.0 - March 15, 2013 (4.0 KB)
顯示所有版本(共 6)

Development 相依性套件 (3):

bundler >= 0
rake >= 0

擁有者:

作者:

  • Matthew Kerwin

SHA 256 checksum:

21601431004abc380ec65b76fa87080e75e3922a1623a1b64f0b9c04fc15775b

總下載次數 23,639

這個版本 10,705

License:

ISC License

Ruby 版本需求:

相關連結: