(Created page with "<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div> <span STYLE="font-size: xx-large"><code>gn:act_setDateTimeFormat</code></span> Category:Action_Library...") |
m (formatting) |
||
Line 3: | Line 3: | ||
[[Category:Action_Library]] | [[Category:Action_Library]] | ||
− | ;Description: Action is used to define date time format of value stored in [[GnChronometer]] | + | ;Description: Action is used to define date time format of value stored in <code>[[GnChronometer]]</code> |
;Action returns: void | ;Action returns: void | ||
==Action signatures== | ==Action signatures== | ||
Line 9: | Line 9: | ||
===Set date/time format=== | ===Set date/time format=== | ||
− | ;<code>[gn:act_setDateTimeFormat]|[target,source]</code> | + | :;<code>[gn:act_setDateTimeFormat]|[target,source]</code> |
− | {| class="wikitable sortable" style="font-size: 85%; text-align: left;" | + | :{| class="wikitable sortable" style="font-size: 85%; text-align: left;" |
|- | |- | ||
! scope="col" | Parameter | ! scope="col" | Parameter | ||
! scope="col" | Description | ! scope="col" | Description | ||
|- | |- | ||
− | | [[target]] | + | | <code>[[target]]</code> |
− | | [[target]] | + | | [[target]] on which media file rename will be preformed |
* Valid [[target|targets]]: | * Valid [[target|targets]]: | ||
− | :*[[GnQuestionnaire]] | + | :*<code>[[GnQuestionnaire]]</code> |
|- | |- | ||
− | | [[source]] | + | | <code>[[source]]</code> |
− | | [[source]] | + | | [[source]] of date/time format |
* Valid [[source|source]]: | * Valid [[source|source]]: | ||
− | :*[[Datatypes#text|text]] | + | :*<code>[[Datatypes#text|text]]</code> |
|- | |- | ||
|} | |} | ||
====Example==== | ====Example==== | ||
− | <code>@+id/chronometer</code> - target<br> | + | :<code>@+id/chronometer</code> - target<br> |
− | <code>@string/newPhotoName</code> - time format<br> | + | :<code>@string/newPhotoName</code> - time format<br> |
− | <code>[gn:act_setDateTimeFormat]|[@+id/chronometer,@string/dateTimeFormat]</code> | + | :; ⤷ <code>[gn:act_setDateTimeFormat]|[@+id/chronometer,@string/dateTimeFormat]</code> |
<hr> | <hr> |
Revision as of 20:02, 12 July 2017
gn:act_setDateTimeFormat
- Description
- Action is used to define date time format of value stored in
GnChronometer
- Action returns
- void
Action signatures
Set date/time format
[gn:act_setDateTimeFormat]|[target,source]
Parameter Description target
target on which media file rename will be preformed - Valid targets:
source
source of date/time format - Valid source:
Example
@+id/chronometer
- target@string/newPhotoName
- time format
- ⤷
[gn:act_setDateTimeFormat]|[@+id/chronometer,@string/dateTimeFormat]
- ⤷