Share via


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
Gg757066.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif date Returns the date of the current point in time that this instance represents.
Gg757066.pubmethod(en-us,AX.60).gif dateSeconds Gets and sets the date and time.
Gg757066.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif new Creates a new instance of the JmgProfileSeconds class.
Gg757066.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif profileSeconds Returns the number of seconds since 01.01.1998, which this instance represents.
Gg757066.pubmethod(en-us,AX.60).gif seconds Gets and sets the time part of the date and time represented by the JmgProfileSeconds object.
Gg757066.pubmethod(en-us,AX.60).gif setDateSeconds Sets the date and time, which the JmgProfileSeconds object represent.
Gg757066.pubmethod(en-us,AX.60).gif setProfileSeconds Sets the date and time, which the JmgProfileSeconds object represents.
Gg757066.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::formattedSeconds Formats the specified time as a string.
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::getClientDate Returns the date from the client machine.
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::getClientTime Returns the time from the client machine.
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::getServerDate Returns the current date on the AOS.
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::getServerTime Returns the current time from the AOS.
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::getSysDate Returns the current date. The date is taken from either client or server, depending on the setup in the JmgParameters table.
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::getSysTime Returns the current time. The time is taken from either client or server, depending on the setup in the JmgParameters table.
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::maxDaySeconds Returns the maximum number of seconds in one day.
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::minutes2seconds Converts number of minutes to number of seconds.
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::proftestdate Returns the date from which timestamps are calculated.
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::time2sec Casts TimeOfDay values to JmgSeconds values.
Gg757066.pubmethod(en-us,AX.60).gif Gg757066.static(en-us,AX.60).gif ::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