Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have below timestamp details in one of the column, How to convert the value into Date & time ?
Timestamp value is :
1435449600
Looks like a Unix timestamp, if so then try :
timestamp(1435449600/ 86400 + 25569)
Looks like a Unix timestamp, if so then try :
timestamp(1435449600/ 86400 + 25569)
Hi ,
Try some thing like
TimeStamp(MakeDate(1970) + (1435449600/ (1000 * 60 * 60 *24)), 'MM/DD/YYYY hh:mm:ss.fff')
pls can you explain me why 86400 & 25569 is used ?
Hi Manoj,
Try,
=Timestamp(1435449600/86400+25569)
Timestamp(Fieldname/86400+25569) as DateTime
Nagaraj , what are these values ?
Search for "Unix Timestamp" on this forum or the internet and you'll find plenty of hit / explanations.
Hi
Check this,
Its a unix time stamp, unixtimestamp.com
T:
LOAD * ,
timestamp((Field/ 86400 + 25569),'DD/MM/YYYY h:mm:ss[.fff] TT') as TS,
date(floor(Field/ 86400 + 25569)) as Date,
time(frac(Field/ 86400 + 25569)) as Time
INLINE [
Field
1435449600
];
Output:
PFA,
Hope this Helps,
Regards,
Hirish
86400 is the number of seconds in a day. 25569 is the number of days between 1 January 1900 and 1 January 1970.
Unix time stamps are specified in seconds since epoch (a specific starting date that has a value of 0 seconds) The values are used to convert seconds into a QlikView Timestamp.