engine:import:setvar2date
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
engine:import:setvar2date [2018/08/14 21:26] – dcumming | engine:import:setvar2date [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | setvar2date | + | ====== SetVar2Date ====== |
- | ==== SetVar2Date ==== | ||
Set a local variable to a date value. | Set a local variable to a date value. | ||
- | ==== Phase ==== | + | ===== Phase ===== |
This instruction is used by the TapeTrack INI Engine. | This instruction is used by the TapeTrack INI Engine. | ||
- | ==== Syntax ==== | + | ===== Syntax ===== |
- | **SetVar2Date**// | + | |
- | // | + | '' |
- | // | + | |
- | // | + | |
- | |varname| | + | ^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ |
- | |date| The string representing the date required in one of the following | + | |varname| |
+ | |date| String | ||
+ | |value | String | The date value in strfdate(3) format | 1 | 64 | | ||
+ | ^ Date Variable Formats^ Description^ | ||
|*[+< | |*[+< | ||
|*| Today.| | |*| Today.| | ||
Line 35: | Line 35: | ||
|M-1+3| The 3rd day of last month.| | |M-1+3| The 3rd day of last month.| | ||
- | |value| The date value in strfdate(3) format.| | ||
- | ==== Example ==== | + | ===== Example |
- | **SetVar2Date: | + | |
- | |SetVar2Date(YESTERDAY, | + | Set variable YESTERDAY to yesterday' |
- | |WriteMsg(" | + | |
+ | < | ||
+ | SetVar2Date(YESTERDAY, | ||
+ | WriteMsg(" | ||
+ | </ | ||
+ | |||
+ | |||
+ | Set variable START to the first day of this year and END to the last. | ||
+ | |||
+ | < | ||
+ | SetVar2Date(START, | ||
+ | SetVar2Date(END, | ||
+ | WriteMsg(" | ||
+ | </ | ||
- | ==== Example ==== | + | {{tag> import_engine sync_engine}} |
- | **SetVar2Date: | + | |
- | END to the last.** | + | |
- | |SetVar2Date(START, | + | |
- | |SetVar2Date(END, | + | |
- | |WriteMsg(" | + |
engine/import/setvar2date.1534282006.txt.gz · Last modified: 2025/01/21 22:07 (external edit)