Skip to content
instance method

Time#yday

() -> ::Integer
yday → integer

Returns the integer day of the year of self, in range (1..366).

Example
Time.new(2000, 1, 1).yday   # => 1
Time.new(2000, 12, 31).yday # => 366
See also #xmlschema #year #wednesday? #zone also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0