You are here: Strings > TimeStamper
TimeStamper
Adds a time stamp to a feature as a new attribute. The format of the
time stamp is set as a parameter of the transformer.
Note: Tip: Alternatively, use the Timestamp feature function.
Parameters
Time Stamp Format
Select a format for the time stamp.
Conversion specifiers are introduced by a ^ character and are replaced
in the format as follows:
^a
|
The abbreviated weekday
name according to the current locale.
|
^A
|
The full weekday name according to the current locale.
|
^b
|
The abbreviated month name according to the current locale.
|
^B
|
The full month name according to the current locale.
|
^c
|
The preferred date and time representation for the current locale.
|
^d
|
The day of the month as a decimal number ranging from 00 to 31.
Note: Note that leading zeros will be added when the day of the
month is less than 10. If you want to suppress the leading zero, enter
^#d.
|
^H
|
The hour as a decimal number using a 24-hour clock ranging from 00 to 23.
|
^I
|
The hour as a decimal number using a 12-hour clock ranging from 01 to 12.
|
^j
|
The day of the year as a decimal number ranging from 001 to 366.
|
^m
|
The month as a decimal number ranging from 00 to 12.
Note: Note that leading zeros will be added when the month is less
than 10. If you want to suppress the leading zero, enter ^#m.
|
^M
|
The minute as a decimal number.
|
^p
|
Either a.m. or p.m. according to the given time value, or the corresponding
strings for the current locale.
|
^S
|
The second as a decimal number.
|
^s |
Seconds from epoch. |
^U
|
The week number of the current year as a decimal number, starting with
the first Sunday as the first day of the first week.
|
^W
|
The week number of the current year as a decimal number, starting with
the first Monday as the first day of the first week.
|
^w
|
The day of the week as a decimal, with Sunday being 0.
|
^x
|
The preferred date representation for the current locale without the
time.
|
^X
|
The preferred time representation for the current locale without the
date.
|
^y
|
The year as a decimal number without a century ranging from 00 to 99.
|
^Y
|
The year as a decimal number including the century.
|
^Z
|
The time zone or name or abbreviation.
|
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
Strings
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.