How can I add clock (date or time) to list?
I try cheat soft by add to list my "time" with label1 but that doesn't work.
Always is message:
The operation < cannot accept the arguments: , [java.util.GregorianCalendar[time=1491516840958,areFieldsSet=true,lenient=true,zone=Europe/Warsaw,firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2017,MONTH=3,WEEK_OF_YEAR=14,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=97,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=0,HOUR_OF_DAY=0,MINUTE=14,SECOND=0,MILLISECOND=958,ZONE_OFFSET=3600000,DST_OFFSET=3600000]],
I try cheat soft by add to list my "time" with label1 but that doesn't work.
Always is message:
The operation < cannot accept the arguments: , [java.util.GregorianCalendar[time=1491516840958,areFieldsSet=true,lenient=true,zone=Europe/Warsaw,firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2017,MONTH=3,WEEK_OF_YEAR=14,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=97,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=0,HOUR_OF_DAY=0,MINUTE=14,SECOND=0,MILLISECOND=958,ZONE_OFFSET=3600000,DST_OFFSET=3600000]],
--
Probably the "SystemTime" method of the clock can replace the "Now" Methode?
--
--
Converting Instants to Milliseconds from 1970 is handy
--
if you want to compare against each other or do math on them.
Thank you, but that only example with my time "second"
--
Converting Instants to Milliseconds from 1970 is handy
if you want to compare against each other or do math on them.
see the documentation http://ai2.appinventor.mit.edu/reference/components/sensors.html#Clock and use the GetMillis method
number GetMillis(InstantInTime instant)
Returns the instant in time measured as milliseconds since 1970.
number GetMillis(InstantInTime instant)
Returns the instant in time measured as milliseconds since 1970.
--
--
댓글 없음:
댓글 쓰기