#397 ISO date conversion

Next_Release
closed
nobody
Classes (154)
5
2012-08-14
2010-06-25
No

Currently the DateTime class can produce a standard ISO formatted timestamp as output, but there is no corresponding method to turn an ISO timestamp into a DateTime object. The init method could be enhanced to include an ISO timestamp as a possible argument, or a new class method could be added to support this functionality (this is my preferred alternative, somthing like fromIsoTimestamp(tmstmp) for example).

Discussion

  • Rick McGuire

    Rick McGuire - 2010-08-18

    DateTime has both fromISODate and fromUTCISODate methods for doing this. What more do you think is required?

     
  • Rick McGuire

    Rick McGuire - 2011-02-03

    The 4.1 version of DateTime has both fromIsoDate and fromUtcIsoDate to parse the different versions of the ISO timestamps.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks