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


12430
12431
12432
# File 'Monkeybrains.rb', line 12430

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


12405
12406
12407
# File 'Monkeybrains.rb', line 12405

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


12395
12396
12397
# File 'Monkeybrains.rb', line 12395

def hour
  @hour
end

minToybox::Lang::Number

The minutes within an hour.

Returns:

Since:

  • 1.0.0


12410
12411
12412
# File 'Monkeybrains.rb', line 12410

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


12425
12426
12427
# File 'Monkeybrains.rb', line 12425

def month
  @month
end

secToybox::Lang::Number

The seconds within a minute.

Returns:

Since:

  • 1.0.0


12415
12416
12417
# File 'Monkeybrains.rb', line 12415

def sec
  @sec
end

yearToybox::Lang::Number

The year.

Returns:

Since:

  • 1.0.0


12435
12436
12437
# File 'Monkeybrains.rb', line 12435

def year
  @year
end