engine:sync:setwritetimeformat
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
engine:sync:setwritetimeformat [2018/10/19 02:27] – Scott Cunliffe | engine:sync:setwritetimeformat [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== SetWriteTimeFormat ===== | + | ====== SetWriteTimeFormat |
Define the way that the WRITETIME field should be converted into a time value. | Define the way that the WRITETIME field should be converted into a time value. | ||
- | ==== Phase ==== | + | ===== Phase ===== |
This instruction is used by the TapeTrack Synchronization Engine. | This instruction is used by the TapeTrack Synchronization Engine. | ||
- | ==== Syntax ==== | + | ===== Syntax ===== |
- | **SetWriteTimeFormat**(// | + | |
- | string //format;// | + | '' |
- | |format| The Write Time format in strptime(3) format.| | + | ^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ |
+ | |format| String | ||
<note tip> | <note tip> | ||
Line 18: | Line 19: | ||
symbol that would usually be required by strptime(3).</ | symbol that would usually be required by strptime(3).</ | ||
- | ==== Example ==== | + | ===== Example |
Extract the Write Time in format HH:MM:SS YYYY-MM-DD. | Extract the Write Time in format HH:MM:SS YYYY-MM-DD. | ||
- | <sxh> | + | <code> |
- | # | + | |
- | # Extract WRITETIME from field 10, length 20. | + | |
Extract(WRITETIME, | Extract(WRITETIME, | ||
- | # Set the Write Time in format HH:MM:SS YYYY-MM-DD. | ||
SetWriteTimeFormat(" | SetWriteTimeFormat(" | ||
+ | </ | ||
- | </sxh> | + | {{tag> import_engine sync_engine}} |
engine/sync/setwritetimeformat.1539916079.txt.gz · Last modified: 2025/01/21 22:07 (external edit)