Re: New to_timestamp implementation is pretty strict - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: New to_timestamp implementation is pretty strict
Date
Msg-id 493407CB.5090403@dunslane.net
Whole thread Raw
In response to Re: New to_timestamp implementation is pretty strict  ("Greg Stark" <stark@enterprisedb.com>)
List pgsql-hackers

Greg Stark wrote:
> How would you parse an input format of just 'SS' ? is there something
> ambiguous about '3' ? I don't see anything "bad" about using %d to
> output an integer number of seconds.
>
>   

The docs say that SS corresponds to "second (00-59)", so clearly it 
should expect a two digit zero padded number.

What's so hard about using "%0.2d" ?

cheers

andrew


pgsql-hackers by date:

Previous
From: "Robert Haas"
Date:
Subject: Re: New to_timestamp implementation is pretty strict
Next
From: "Robert Haas"
Date:
Subject: Re: New to_timestamp implementation is pretty strict