Clock


概要

時間に関係するコンポーネントです。画面上には表示されませんがBlockと組み合わて一定間隔で動くタイマーや日時を取得することができます。



Properties

  • TimerAlwaysFires
チェックを入れるとアプリをバックグラウンドにしている状態でも時間が動きます

  • TimerEnabled
チェックを入れると時間が動きます

  • TimeInterval
時間の動く間隔を設定します。1000を設定すると1秒ごとにコンポーネントが値を取得するようになります



Blocks

when型
whenClock.Timerdo.png when Clock.Timer
do
タイマーが動き始めた時に実行されます


call型

callClock.AddDaysinstantdays.png call Clock.AddDays
instant
days
instantからdays日経った日付を返します  (時,分,秒などの情報も保持。以下も同様)
TimerAddEX.png 左の図の場合、現在の日付が17日だと+3の20の数値を取得します


callClock.AddHoursinstanthours.png call Clock.AddHours
instant
hours
instantからhours時間経った時刻を返します


callClock.AddDaysinstantminutes.png call Clock.AddMinutes
instant
minutes
instantからminutes分経った時刻を返します


callCLock.AddMonthsinstantmonths.png call Clock.AddMonths
instant
months
instantからmonthsヶ月経った日付を返します


callClock.AddSecondsinstantseconds.png call Clock.AddSeconds
instant
seconds
instantからseconds秒経った時刻を返します


callClock.AddWeeksinstantweeks.png call Clock.AddWeeks
instant
weeks
instantからweeks週間経った時刻を返します


callClock.AddYearsinstantyears.png call Clock.AddYears
instant
years
instantからyears年経った時刻を返します


callClock.DaysOfMonthinstant.png call Clock.DaysOfMonth
instant
現在が月の何日目かを返します。(6月19日→19)


callClock.Durationstartend.png call Clock.Duration
start
end
startからendまで何ミリ秒経ったかを返します


callClock.FormatDateinstant.png call Clock.FormatDate
instant
instantから年月日を返します 例)2014/07/24


callClock.FormatDateTimeinstant.png call Clock.FormatDateTime
instant
instantから年月日と時分秒を返します 例)2014/07/24 4:21:56
表示について
a...午前午後
c...曜日
d...日付
h...時間
k...24時間表記時刻
M...月
m...分
s...秒
w...不明
y...年
z...時差


callClock.FormatTimeinstant.png call Clock.FormatTime
instant
instantから時分秒を返します 例)4:21:56


callClock.GetMillisinstant.png call Clock.GetMillis
instant
instantからミリ秒を返します


callClock.Hourinstant.png call Clock.Hour
instant
日時の時間を取得します。例)call Clock.nowを入れると現在の時刻の時間の値を取得します


callClock.Makeinstantfrom.png call Clock.MakeInstant
from
任意の日付のインスタントを作ることができます。設定値の形式はMM/DD/YYYY,hh:mm:ss、MM/DD/YYYY、hh:mmの3パターンで設定します


callClock.MakeInstantFromMillismillis.png call Clock.MakeInstantFromMillis
millis
入力されたミリ秒からintentに変換します


callClock.Minuteinstant.png call Clock.Minute
instant
現在の時刻が何分かを返します


callClock.Monthinstant.png call Clock.Month
instant
現在の日付の月を返します(1~12)


callCLock.MonthNameinstant.png call Clock.MonthName
instant
現在の日付の月を返します(1月~12月)


callClockNow.png call Clock.Now
現在の時刻を求めます。他のClockブロックと組み合わせて使用します


callClock.SecondInstant.png call Clock.Second
instant
秒数のインスタントを取得します


callClock.SystemTime.png call Clock.SystemTime
基準(1970/01/01 09:00:00)から何ミリ秒経過したかを返します


callClock.Weekdayinstant.png call Clock.Weekday
instant
一週間の何日目かの値を返します(日曜日から数え始めます)


callClock.WeekdayNameinstant.png call Clock.WeekdayName
instant
曜日を返します(日曜日~土曜日)


callClock.Yearinstant.png call Clock.Year
instant
現在の西暦を返します


set型
set Clock.TimerAlwaysFires to trueかfalseをいれ、アプリがバック時でも動くかどうかを設定変更できます
set Clock.TimeEnabled to trueブロックでコンポーネントが動きだし、falseブロックでコンポーネントの挙動を止めます
set Clock.TimeInterval to コンポーネントの動くインターバルを設定します。


値型
Clock.TimeAlwaysFires trueかfalseが入っています
Clock.TimeEnabled trueかfalseが入っています
Clock.TimerInterval コンポーネントが実行されるインターバルの値が入っています
Clock anycomponentで使用するブロックです

  • 最終更新:2015-09-15 12:16:33

このWIKIを編集するにはパスワード入力が必要です

認証パスワード