Fadhley, Salim (FID) wrote:
Sybase's own DateTime?
Or some bizarre C++ type. It looks an awful lot like a DateTime object
except that it has a very US-Centric Repr string format (do you get
annoyed by developers who make their repr methods look like strings?).
I'm not seeing anything in D
On Thu, May 25, 2006, Oleg Broytmann wrote:
...
>PS. Please stop top-posting. Please stop quoting entire mesages.
>http://email.about.com/library/weekly/aa011000a.htm
The only thing I don't like about that article is the last
sentence that seems to support using HTML in e-mail :-).
Bill
--
INTERN
>Sybase's own DateTime?
Or some bizarre C++ type. It looks an awful lot like a DateTime object
except that it has a very US-Centric Repr string format (do you get
annoyed by developers who make their repr methods look like strings?).
In any case, this plants the blame firmly in the domain of
On Thu, May 25, 2006 at 05:16:56PM +0100, Fadhley, Salim (FID) wrote:
> It turns out that the thing that looked like a date time string was
> actually a DateTimeType object which is not the same thing asn an
> mx.DateTime or a datetime.datetime.
Sybase's own DateTime?
PS. Please stop top-posti
Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Fadhley, Salim (FID)
> Sent: 25 May 2006 17:04
> To: [email protected]
> Subject: RE: [SQLObject] That date validator bug...
>
> That value came from sybase!
>
On Thu, May 25, 2006 at 05:04:20PM +0100, Fadhley, Salim (FID) wrote:
> That value came from sybase!
>
> Look at the function to_python in col.py - it turns whatever data format
> the DB uses to represent a date into a datetime object. It works fine as
> long as the DB ises ISOFormat. If for some
2006 16:53
> To: [email protected]
> Subject: Re: [SQLObject] That date validator bug...
>
> On Thu, May 25, 2006 at 04:41:37PM +0100, Fadhley, Salim (FID) wrote:
> > (Pdb) value
> > 'Jun 20 2007 12:00AM'
> > (Pdb)
>
>Wher
On Thu, May 25, 2006 at 04:41:37PM +0100, Fadhley, Salim (FID) wrote:
> (Pdb) value
> 'Jun 20 2007 12:00AM'
> (Pdb)
Where the value came from?
Oleg.
--
Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETUR
I was looking into that annoying datetime validation bug:
I think there is some kind of locale spesific bug to do with how DB
datetime representations are transformed into python types.
On line 976 in "to_python" we have:
stime = time.strptime(value, self.format)
If I look at self.format:
(Pdb)