Class: Toybox::Time::Gregorian::Info

Inherits:
Lang::Object show all

Overview

The Gregorian.Info class contains all of the necessary information to represent a Gregorian date.

The types of some returned values depend on the Time.FORMAT_* value specified when calling info() or utcInfo().

Since:

  • 1.0.0

Months of the year collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

dayToybox::Lang::Number

The date, indicating the day of the month.

Returns:

Since:

  • 1.0.0


11103
11104
11105
# File 'Monkeybrains.rb', line 11103

def day
  @day
end

day_of_weekToybox::Lang::Number, Toybox::Lang::String

Note:

The String values returned are language and device dependent.

The day of the week (e.g. Monday, Tuesday, Wednesday, etc,).

Returns:

Since:

  • 1.0.0


11078
11079
11080
# File 'Monkeybrains.rb', line 11078

def day_of_week
  @day_of_week
end

hourToybox::Lang::Number

The hour of the day based on a 24-hour clock.

Returns:

Since:

  • 1.0.0


11068
11069
11070
# File 'Monkeybrains.rb', line 11068

def hour
  @hour
end

minToybox::Lang::Number

The minutes within an hour.

Returns:

Since:

  • 1.0.0


11083
11084
11085
# File 'Monkeybrains.rb', line 11083

def min
  @min
end

monthToybox::Lang::Number, Toybox::Lang::String

Note:

The String values returned are language and device dependent.

The month of the year (e.g. January, February, March, etc.).

Returns:

Since:

  • 1.0.0


11098
11099
11100
# File 'Monkeybrains.rb', line 11098

def month
  @month
end

secToybox::Lang::Number

The seconds within a minute.

Returns:

Since:

  • 1.0.0


11088
11089
11090
# File 'Monkeybrains.rb', line 11088

def sec
  @sec
end

yearToybox::Lang::Number

The year.

Returns:

Since:

  • 1.0.0


11108
11109
11110
# File 'Monkeybrains.rb', line 11108

def year
  @year
end