IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 25, 2006, 11:49:42 AM (20 years ago)
Author:
jhoblitt
Message:

add fractional second support to the ISO8601 format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Metadata-Config/config_grammar.txt

    r8888 r8940  
    11# Copyright (c) 2005  Joshua Hoblitt
    22#
    3 # $Id: config_grammar.txt,v 1.2 2006-09-23 00:26:50 jhoblitt Exp $
     3# $Id: config_grammar.txt,v 1.3 2006-09-25 21:49:42 jhoblitt Exp $
    44
    55{
     
    348348iso8601:
    349349    # based on code from DateTime::Format::ISO8601
    350     / (\d{4}) - (\d\d) - (\d\d) T (\d\d) : (\d\d) : (\d\d) Z /x
     350    / \d{4} -?? \d\d -?? \d\d T?? \d\d :?? \d\d :?? \d\d (?:[\.,] (\d+))? Z/x
    351351        { DateTime::Format::ISO8601->parse_datetime( $item[1] ) }
    352352
Note: See TracChangeset for help on using the changeset viewer.