TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


engine:sync:setwritetimeformat

This is an old revision of the document!


setwritetimeformat

SetWriteTimeFormat

Define the way that the WRITETIME field should be converted into a time value.

Phase

This instruction is used by the TapeTrack Synchronization Engine.

Syntax

SetWriteTimeFormat(format);

string format;

format The Write Time format in strptime(3) format.
It should be noted that by the time this function is run the INI engine has already tried to resolve environmental variables so it is necessary to include two percentage symbols for each symbol that would usually be required by strptime(3).

Example

SetWriteTimeFormat: Extract the Write Time in format HH:MM:SS YYYY-MM-DD.

Extract(WRITETIME, 10, 20, 0); Extract WRITETIME from field 10, length 20.
SetWriteTimeFormat(“H:M:S Y-%m-%d”); Set the Write Time in format HH:MM:SS YYYY-MM-DD.
engine/sync/setwritetimeformat.1534276856.txt.gz · Last modified: 2025/01/21 22:07 (external edit)