On Thu, 16 Sep 2004 14:41:21 +0900, "Daisuke Maki" <[EMAIL PROTECTED]> said: > > That's the right behavior because DateTime represents a point in time. > "2004" represents 1 year, a span of time. > > What exactly do you want to do?
I have a database table with a column containing iso 8601 date strings. Not all of these values have the same precision: some are accurate only to the year, some to the day, and some to the hour and minute. I want to know what precision it was so that I can display these datetimes to the user -- not in the original format but in some other desirable format suitable for that level of precision. But I can't, using DateTime::*, because it loses all information about the original precision. This isn't impossible; i've got my own regexp parser of ISO8601 that retains an internal precision value. I was hoping to use DateTime because it supports more of ISO8601 than I do. But it doesn't seem to have this feature. -mda
