Skip to content
instance method

Time#tv_usec

() -> ::Integer
usec -> integer

Returns the number of microseconds in the subseconds part of self in the range (0..999_999); lower-order digits are truncated, not rounded:

Example
t = Time.now # => 2022-07-11 14:59:47.5484697 -0500
t.usec       # => 548469

Related: Time#subsec (returns exact subseconds).

See also #tv_sec #usec #tv_nsec #utc also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0