Class: Toybox.Time.Gregorian.Info

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:

API Level 1.0.0

Instance Member Summary collapse

Instance Attribute Details

var day as Lang.Number

The date, indicating the day of the month.

Since:

API Level 1.0.0

Returns:

var day_of_week as Lang.Number or Lang.String

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

Note:

The String values returned are language and device dependent.

Since:

API Level 1.0.0

Returns:

var hour as Lang.Number

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

Since:

API Level 1.0.0

Returns:

var min as Lang.Number

The minutes within an hour.

Since:

API Level 1.0.0

Returns:

var month as Lang.Number or Lang.String

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

Note:

The String values returned are language and device dependent.

Since:

API Level 1.0.0

Returns:

var sec as Lang.Number

The seconds within a minute.

Since:

API Level 1.0.0

Returns:

var year as Lang.Number

The year.

Since:

API Level 1.0.0

Returns:


Generated Sep 23, 2024, 3:32:49 PM