Salesforce

Time - Function (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Time (Magic xpa 4.x)

Returns the system time.

Syntax:

Time()

Parameters:

None

Returns:

Current time value in the HH:MM:SS format, as the default.

Examples:

Time() returns 17:08:42.

Time()+5 adds 5 seconds to the system time, returning 17:08:47.

Note:

The Time() function is often used in an Init column. This will set the field to the current time the first time the user sees the screen, and is also useful for setting timestamps for when a record was created or modified.

For an even more precise time, use the mTime function.

See also:

Date

MDate

UTCTime

How Do I Retrieve the Current Time?

The Online and Rich Client Samples projects (program DT02 and RDT02)

Reference
Attachment 
Attachment