Contents
x
Overview
Getting Started
Training Series
Deep Dive
How To
DataJet Desktop
DataJet Server
Campaign Selection System
Release Notes
Coming Soon
Powered by
DateTime Transforms
14 Articles
in this category
Print
Dark
Light
Contents
DateTime Transforms
14 Articles
in this category
Dark
Light
DateTime Transform Overview
Date Transform Functions Functions that operate on DateTime fields and that manipulate hours, minutes and seconds Purpose Use Date Transform functions to: Manipulate hours, minutes and seconds in a datetime field Calculate elapsed time...
FLOORMIN(A,B)
Engineering Functions: [FLOORMIN(A,B)] Rounds a DateTime field down to a given interval, i.e., down to the nearest hour, 15 mins… FLOORMIN = Date &" " & Hour &":" & INT(Mins/Interval) * Interval &":00" Where Date = ...
HOD(A)
Engineering Functions: [HOD(A)] Returns the Hour portion from DateTime Field A. Purpose Use this function to: Group Data into hourly segments Determine hourly activity patterns across multiple days Extract hour of day data for use in other ca...
HOUR(A)
DateTime Transform: HOUR(A) Returns the Hour portion of DateTime A Purpose Use this function to: Extract the hour function of a TimeStamp Return the hour portion of a date time field Return Value Example Return Value: 0.....23 ...
HOURSBEFOREMAX(A)
DateTime Transform: HOURSBEFOREMAX(A) Returns the number of hours before the maximum value of DateTime A HOURSBEFOREMAX(A) = HoursDiff(Max(A),A) where Max(A) = Maximum value in Field A A = Value of current record HoursDiff(...
HOURSDIFF(A,B)
DateTime Transform: HOURSDIFF(A,B) Returns difference in hours between DateTime A and DateTime B HOURSDIFF(A,B) - AbsoluteHours(B) - AbsoluteHours(A) Where AbsoluteHours(B) = number of hours from date reference to B AbsoluteHours(A) = n...
MINSDIFF(A,B)
DateTime Transform: MINSDIFF(A,B) Returns difference in minutes between Time for DateTime A and Time for DateTime B MINSDIFF(A,B) = AbsoluteMinutes(B) - AbsoluteMinutes(A) Where AbsoluteMinutes(B) = number of minutes from date reference (whe...
MINUTE(A)
DateTime Transform: MINUTE(A) Returns the minute portion of DateTime A Purpose Use this function to: Extract the minute section of the DateTime string Return Value Example Return Value: 0 to 59 Parameters JSON Sample ...
MOD(A)
DateTime Transform: MOD(A) MINUTE OF DAY. Return the number of minutes since the start of day for DateTime A Purpose Use this function to: Calculate the elapsed minutes since the start of the day Return Value Example Return...
SECOND(A)
DateTime Transform: SECOND(A) Returns the SECOND portion of DateTime A Purpose Use this function to: Extract the second section of a DateTime string Return Value Example Return Value: 0 to 59 Parameters JSON Sample U...
SECSDIFF(A,B)
DateTime Transform: SECSDIFF(A,B) Returns difference in seconds between Time for DateTime A and Time for DateTime B SECSDIFF(A,B) = AbsoluteSeconds(B) - AbsoluteSeconds(A) Where AbsoluteSeconds(B) = number of seconds from date reference (wh...
SOD(A)
DateTime Transform: SOD(A) Returns the number of seconds since the start of the day in DateTime A Purpose Use this function to: Calculate the number of elapsed seconds since the start of the day Return Value Example Return Value:...
TRUNKSEC(A)
DateTime Transform: TRUNKSEC(A) Truncates DateTime A to the nearest minute Purpose Use this function to: Group DateTime data into minute segments Return Value Example Return Value: [Date] HH:MM:00 Parameters JSON Sample ...
YMDH(A)
DateTime Transform: YMDH(A) Returns Year Month Day Hour of DateTime A in the format YYYYMMDDHH Purpose Use this function to: Create a discrete DataType from a continuous DateTime field ready for use in further engineering and analytical ope...