JmgProfileSeconds Class [AX 2012]
The JmgProfileSeconds class represents a specific point in time and a number of the static methods format time strings.
Syntax
class JmgProfileSeconds
Run On
Called
Methods
Method | Description | |
---|---|---|
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) | |
date | Returns the date of the current point in time that this instance represents. | |
dateSeconds | Gets and sets the date and time. | |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) | |
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) | |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) | |
new | Creates a new instance of the JmgProfileSeconds class. | |
notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) | |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) | |
objectOnServer | Determines whether the object is on a server. (Inherited from Object.) | |
owner | Returns the instance that owns the object. (Inherited from Object.) | |
profileSeconds | Returns the number of seconds since 01.01.1998, which this instance represents. | |
seconds | Gets and sets the time part of the date and time represented by the JmgProfileSeconds object. | |
setDateSeconds | Sets the date and time, which the JmgProfileSeconds object represent. | |
setProfileSeconds | Sets the date and time, which the JmgProfileSeconds object represents. | |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) | |
toString | Returns a string that represents the current object. (Inherited from Object.) | |
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) | |
wait | Pauses a process. (Inherited from Object.) | |
xml | Returns an XML string that represents the current object. (Inherited from Object.) | |
::formattedSeconds | Formats the specified time as a string. | |
::getClientDate | Returns the date from the client machine. | |
::getClientTime | Returns the time from the client machine. | |
::getServerDate | Returns the current date on the AOS. | |
::getServerTime | Returns the current time from the AOS. | |
::getSysDate | Returns the current date. The date is taken from either client or server, depending on the setup in the JmgParameters table. | |
::getSysTime | Returns the current time. The time is taken from either client or server, depending on the setup in the JmgParameters table. | |
::maxDaySeconds | Returns the maximum number of seconds in one day. | |
::minutes2seconds | Converts number of minutes to number of seconds. | |
::proftestdate | Returns the date from which timestamps are calculated. | |
::time2sec | Casts TimeOfDay values to JmgSeconds values. | |
::unFormattedSeconds | Converts a TimeString to an integer value according to the specified format. |
Top
Remarks
Internally the point in time is stored as an integer, which can be directly compared to a DateTime field type.
Inheritance Hierarchy
Object Class
JmgProfileSeconds Class