Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojo/date/stamp.js

  • Provides:

    • dojo.date.stamp
  • dojo.date.stamp.fromISOString

    • parameters:
      • formattedString: (typeof String)
        A string such as 2005-06-30T08:05:00-07:00 or 2005-06-30 or T08:05:00
      • defaultTime: (typeof Number)
        Used for defaults for fields omitted in the formattedString.
        Uses 1970-01-01T00:00:00.0Z by default.
    • returns
      Date or null
    • summary
      Returns a Date object given a string formatted according to a subset of the ISO-8601 standard.
    • description
      Accepts a string formatted according to a profile of ISO8601 as defined by
      [RFC3339](http://www.ietf.org/rfc/rfc3339.txt), except that partial input is allowed.
      Can also process dates as specified [by the W3C](http://www.w3.org/TR/NOTE-datetime)
      The following combinations are valid:
      
      * dates only
      	* yyyy
      	* yyyy-MM
      	* yyyy-MM-dd
      * times only, with an optional time zone appended
      	* THH:mm
      	* THH:mm:ss
      	* THH:mm:ss.SSS
      * and "datetimes" which could be any combination of the above
      
      timezones may be specified as Z (for UTC) or +/- followed by a time expression HH:mm
      Assumes the local time zone if not specified.  Does not validate.  Improperly formatted
      input may return null.  Arguments which are out of bounds will be handled
      by the Date constructor (e.g. January 32nd typically gets resolved to February 1st)
      Only years between 100 and 9999 are supported.
    • type
      Function
  • dojo.date.stamp._isoRegExp

    • type
      RegExp
  • dojo.date.stamp.__Options

    • type
      Function
  • dojo.date.stamp.__Options.selector

    • type
      String
    • summary
      "date" or "time" for partial formatting of the Date object.
      Both date and time will be formatted by default.
  • dojo.date.stamp.__Options.zulu

    • type
      Boolean
    • summary
      if true, UTC/GMT is used for a timezone
  • dojo.date.stamp.__Options.milliseconds

    • type
      Boolean
    • summary
      if true, output milliseconds
  • dojo.date.stamp.toISOString

    • parameters:
      • dateObject: (typeof Date)
        A Date object
      • options: (typeof dojo.date.stamp.__Options)
    • returns
      String
    • summary
      Format a Date object as a string according a subset of the ISO-8601 standard
    • description
      When options.selector is omitted, output follows [RFC3339](http://www.ietf.org/rfc/rfc3339.txt)
      The local time zone is included as an offset from GMT, except when selector=='time' (time without a date)
      Does not check bounds.  Only years between 100 and 9999 are supported.
    • type
      Function
  • dojo.date.stamp

    • type
      Object
  • dojo.date

    • type
      Object
  • dojo

    • type
      Object