dw.util
Class DateUtils
dw.util.DateUtils
A class with several utility methods for Date objects.
Deprecated:
See each method for additional information.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
static nowForInstance()
:
Date
Returns the current time stamp in the time zone of the instance.
static nowForSite()
:
Date
Returns the current timestamp in the time zone of the current site.
Methods inherited from class
Object
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
Method Detail
nowForInstance
static nowForInstance()
:
Date
Returns the current time stamp in the time zone of the
instance.
Deprecated:
Use System.getCalendar() instead.
Returns:
the current time stamp in the time zone of the instance.
nowForSite
static nowForSite()
:
Date
Returns the current timestamp in the time zone of the
current site.
Deprecated:
Use Site.getCalendar() instead.
Returns:
the current timestamp in the time zone of the current site.