Ruby::V4::Date
Inherits Comparable < Reference < Object
Constants
REFORM_JD = 2299161
Constructors
strptime: мини-парсер форматов (%Y %m %d %y + буквальные разделители).
today
SourceClass methods
Обратно: {год, месяц, день} в календаре, действующем на этот JD.
Instance methods
asctime
Sourcecivil
Sourcecwday
Sourcecweek
Sourcecwyear
Sourcedate_part
Sourceday
Sourcedownto(limit : self, &block : self -> _) : Nil
Sourcefriday?
Sourcegregorian?
Sourceinspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
This method should usually not be overridden. It delegates to
#inspect(IO) which can be overridden for custom implementations.
Also see #to_s.
iso8601
Sourcejd
Sourcejulian?
Sourcemday
Sourcemjd
Sourcemon
Sourcemonday?
Sourcemonth
Sourcenext_day(n = 1) : self
Sourcenext_month(n = 1) : self
Sourcenext_year(n = 1) : self
Sourceprev_day(n = 1) : self
Sourceprev_month(n = 1) : self
Sourceprev_year(n = 1) : self
Sourcesaturday?
Sourcesucc
Sourcesunday?
Sourcethursday?
Sourceto_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
tuesday?
Sourceupto(limit : self, &block : self -> _) : Nil
Sourcewday
Sourcewednesday?
Sourceyday
Sourceyear
Source