Skip to content
instance method

Time#mday

() -> ::Integer
mday → integer

Returns the integer day of the month for self, in range (1..31):

Example
t = Time.new(2000, 1, 2, 3, 4, 5, 6)
# => 2000-01-02 03:04:05 +000006
t.mday # => 2

Related: Time#year, Time#hour, Time#min.

See also #localtime #min #iso8601 #mon also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0