Line 40: | Line 40: | ||
<code>@+id/timeInDATA</code> - [[source]]<br> | <code>@+id/timeInDATA</code> - [[source]]<br> | ||
<code>@+id/clockTimeIn</code> - [[target]]<br> | <code>@+id/clockTimeIn</code> - [[target]]<br> | ||
− | <code>@string/screen3_timeFormat</code> - format<br><br> | + | <code>@string/screen3_timeFormat</code> - format e.g. <code>dd.MM.yyyy H:mm:ss</code><br><br> |
<code>[gn:act_convertTimestampToFormat]|[@+id/timeInDATA,@+id/clockTimeIn,@string/screen3_timeFormat]</code> | <code>[gn:act_convertTimestampToFormat]|[@+id/timeInDATA,@+id/clockTimeIn,@string/screen3_timeFormat]</code> | ||
<hr> | <hr> |
Revision as of 14:50, 3 March 2017
gn:act_convertTimestampToFormat
- Description
- Action used to convert timestamp (numerical value) from certain widget to human readable format.
- Action returns
- void
Action signatures
Convert timestamp from certain widget
[gn:act_convertTimestampToFormat]|[source,target,format]
Parameter | Description |
---|---|
source | source from where value for conversion will be retrieved |
target | target from where the while action is using value as expression comparsion parameter |
format | format in which source value will be converted
|
Example
@+id/timeInDATA
- source
@+id/clockTimeIn
- target
@string/screen3_timeFormat
- format e.g. dd.MM.yyyy H:mm:ss
[gn:act_convertTimestampToFormat]|[@+id/timeInDATA,@+id/clockTimeIn,@string/screen3_timeFormat]