contentbox.models.util

Class DateUtil

lucee.Component
    extended by contentbox.models.util.DateUtil

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Static date utility object

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any epochToLocal([any epoch])
         Convert epoch milliseconds into local time object.
    any nowUTC()
         Return now() in UTC.
    any toUTC(any dateTime)
         Conver the incoming date time to UTC using the dateTimeFormat() method.
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    epochToLocal

    public any epochToLocal([any epoch])

    Convert epoch milliseconds into local time object.

    Parameters:
    epoch - The epoch time in milliseconds
    Returns:
    ColdFusion date/time equivalent

    nowUTC

    public any nowUTC()

    Return now() in UTC


    toUTC

    public any toUTC(any dateTime)

    Conver the incoming date time to UTC using the dateTimeFormat() method

    Parameters:
    dateTime - The date time object/string to convert