Connect IQ > APIメモ > Toybox > Time

下位ページ

Content

Module: Toybox::Time

時間・日付を扱う関数群を提供するモジュール
  • Since : 1.0.0

Defined Under Namespace


定数

  • FORMAT_SHORT = 0 : Short formatting is a numerical representation of date/time. Since : 1.0.0
  • FORMAT_MEDIUM = 1 : 呼ばれる関数に応じて、Numbers と Strings が使い分けられる。 String が使われた場合、短縮形が用いられる。 Since : 1.0.0
  • FORMAT_LONG = 2 : Long formatting is a mix of Numbers and Strings depending on what function is being called. If a String is used, it results in the spelled out form of the time or date. Since : 1.0.0

関数(要約) Time

  • (Moment) now : Use now() to get a Moment for the current moment in time.
  • (Moment) today : Use today() to get a Moment for the beginning of today based on your current GPS location.

関数

(Moment) now : 現在時刻を取得する

  • Returns : (Moment) 現在時刻
  • Since : 1.0.0

(Moment) today

Use today() to get a Moment for the beginning of today based on your current GPS location.
  • Returns : (Moment) The beginning of today
  • Since : 1.0.0

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2016年03月12日 22:21