MOD(A)
  • 1 Minute to read
  • Dark
    Light
  • PDF

MOD(A)

  • Dark
    Light
  • PDF

Article summary

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

PropertyValue
FieldTypeInteger
FieldSizeMed
DataTypeDiscrete
DataSizeShort


Example Return Value: 0 to 1440

Parameters

ParameterJSONDescription
Table“targetTable”: “MyTableName”The target table on which the new field will be created
Filter“dataset”: {DataSet_JSON}Optional.   If a filter is applied, records not in the filter Recordset will be returned as null.
DateTime Function“p1”: “MOD(A)”MOD(A)
A“p2”: “DateTimeFieldName”
“p2”: “#YYYY-MM-DD HH:MM:SS”

Required.  The DateTime value from which to calculate minute of the day
Supports:  
  • DataType: Continuous
  • Field Type: DateTime
  • Fixed Value:  #YYYY-MM-DD HH:MM:SS,    e.g. #2021-04-05 11:01:08

JSON Sample

Usage Notes

To return the minute digits of DateTime field A, use the MINUTE(A) function. 

See Also:

  • HOD(A)  (DateTime)
  • SOD(A)  (DateTime)
  • Engineering | Expression Field

Example

ExampleDetails
DescriptionCalculate number of minutes since start of day for the purchase time
Input
  • Table: = [transactions]
  • Function: = DateTimeTransform
  • DateTimeFunction: = MOD(A)
  • A:= [transactions].[dtPurchase]
  • Name: =MOD_A
Sample



Was this article helpful?

What's Next