bottom

Timestamp

User Rating: / 5
PoorBest 

This is draft document to be improved soon...

TimeGen

Timestamp Generation Rule

The Timestamp generation rule produces timestamps (including date and time parts) formatted values using a reference timestamp and offsets provided by a source field.

This generation rule is appropriate to produce a sequence of date distributed allong a period of time.

Offset are provided in [+|-]%H:%M:%S format using a minus sign to generate timestamps before the reference timestamp.

Configuration

The offset value used for each value to generate is provided by a child generator allowing any kind of offset distribution during the generation.

The mandatory format of the reference timestamp is YYYY/MM/dd HH:mm:ss

But the format used to produce timestamps is configurable. You can use a combination of sign from the table below.

SpecifierReplaced byExample
%a Abbreviated weekday name * Thu
%A Full weekday name * Thursday
%b Abbreviated month name * Aug
%B Full month name * August
%c Date and time representation * Thu Aug 23 14:55:02 2001
%d Day of the month (01-31) 23
%H Hour in 24h format (00-23) 14
%I Hour in 12h format (01-12) 02
%j Day of the year (001-366) 235
%m Month as a decimal number (01-12) 08
%M Minute (00-59) 55
%p AM or PM designation PM
%S Second (00-61) 02
%U Week number with the first Sunday as the first day of week one (00-53) 33
%w Weekday as a decimal number with Sunday as 0 (0-6) 4
%W Week number with the first Monday as the first day of week one (00-53) 34
%x Date representation * 08/23/01
%X Time representation * 14:55:02
%y Year, last two digits (00-99) 01
%Y Year 2001
%Z Timezone name or abbreviation CDT
%% A % sign %

Add comment


Security code
Refresh