contentbox.modules.contentbox-deps.modules.cbfeeds.models.util

Class DateUtils

lucee.Component
    extended by contentbox.modules.contentbox-deps.modules.cbfeeds.models.util.DateUtils

This CFC is a utility that helps you deal with date representations for specific date-time formats

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    string parseISO8601(string datetime)
         Parse a UTC or iso8601 date to a normal CF datetime object: http://en.wikipedia.org/wiki/ISO_8601, usually follows the YYYY-MM-DDThh:mm:ss format

    Parameters:
    datetime - The datetime string to convert

    parseRFC822

    public string parseRFC822(string datetime)

    Parse RFC822 dates, returns empty string if not a valid date. More information at http://www.faqs.org/rfcs/rfc822.html. Example: Wed, 02 Oct 2002 08:00:00 EST

    Parameters:
    datetime - The datetime string to convert