Iain 'Spoon' Truskett schreef: > Yes. Though I have a curious case at present with a format module that > just wants time and not date. The problem? DateTime objects require, at > the very least, a specified year. Is this a problem? I don't know.
I have a calendar module that just handles dates, not times. So I want to put all the DateTime.pm time stuff in a DateTime::Time module. All calendar modules that use the usual 24hour day can then inherit the time handling methods from DateTime::Time. It had not occurred to me to make it useable separately, to just handle times; but it's possible. Although it might be overkill: if you don't know the date, you can't handle timezones correctly. Eugene