I've been away from this list for quite some time but I'm back doing some
datetime stuff. Nothing fancy but much easier than home-grown.
While testing some code I ran into the situation that I can deal with but
would prefer not having to.
Short story usng the truncate method on a datetime
On Thu, 4 Aug 2005, Eugene van der Pijll wrote:
Roderick A. Anderson schreef:
Short story usng the truncate method on a datetime object that was created
with a format destroys/removes the format -- forever.
That's a bug. DT::truncate() copies the locale and the timezone, but
should also
Rick Measham schreef:
Not a bug. Strptime is a ::Format module, all it does is takes a string
and returns a DateTime.
Eugene van der Pijll replied:
But Rod wasn't calling the formatter object directly, he was using the
new 'formatter' parameter to DT::new():
Ahh sorry, missed that ..
On Fri, 5 Aug 2005, Rick Measham wrote:
Ahh sorry, missed that .. infact, I think I completely missed the
addition of the option :)
You too? :-)
Rod
--
Open Source Software - You usually get more than you pay for...
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL