Time Values in Loftware Enterprise SP

Most time values in Loftware Enterprise™ SP must be entered in milliseconds (ms), and most date/time values are stored in a format called Epoch timeClosed The number of seconds since 00:00:00 UTC on 1 January 1970, not including leap seconds.. However, you can use Loftware Enterprise SP to convert date/time values from Epoch time to a human readable format. You can also use Loftware Enterprise SP to retrieve the current date and time in a human readable format.

Time Values

Most time values in Loftware Enterprise SP must be entered in whole milliseconds (ms). The following equivalents may be helpful.

1 second = 1,000ms

1 minute = 60,000ms

1 hour = 3,600,000ms

1 day = 86,400,000ms

To convert a specific value to or from milliseconds, conversion websites such as The Calculator Site may be helpful.

Current Date/Time

You can run a Date/Time data source, a Format Date/Time business rule component block, or a dateTime business rule component to retrieve the current date and time from the Loftware Application Server. The date and time is returned as a value with a data type of STRING (not DATE) in the format specified by the data source or business rule.

ClosedDate/Time Formats

ClosedPlaceholder Characters in Custom Date/Time Formats

Date/Time Values in Data Sources

Most date/time values in Loftware Enterprise SP, including those obtained from a Database data source, are stored in Epoch timeClosed The number of seconds since 00:00:00 UTC on 1 January 1970, not including leap seconds.. You can use a Script data source to convert a date/time value from Epoch time to a human readable format. For more information, see Script Examples: Change the Format of a Date.

Date/Time Values in a Rule

In a Map Operations or Static rule, you can select the data type for each value. For a value with a data type of DATE, you can specify the date/time value either in Epoch time or in the following format: yyyy-MM-dd hh:mm:ss.

Date/Time Values in a Business Rule in XML

For most values in a business rule in XML, you can specify the data type of the value. In most cases, one of the possible data types is DATE. For a DATE value, you can specify the date/time value either in Epoch time or in the following format: yyyy-MM-dd hh:mm:ss. In a comparison in a condition, you can use equals, greaterThan, lessThan, and notEquals comparison operators to compare DATE values.