DateTime::Event::Basic - A base class for building Event classes.
- Provides generic things like
new( event = 'type', %param )
as_set( span = $span )
as_list( span = $span )
is( datetime = $dt )
closest( datetime = $dt )
event parameter specify a subtype, like
western, eastern,
Flavio S. Glock wrote:
as_list( span = $span )
is( datetime = $dt )
Syntax sugar - these could be project wide:
Whenever a span is required, accept start/end/after/before parameters
too.
Whenever a datetime is required, accept
year/month/day/hour/minute/second parameters too.
Whenever a
Hi Iain,
[snipped]
* Rick Measham ([EMAIL PROTECTED]) [03 Apr 2003 09:22]:
[...]
Ages ago I proposed that we might need to distribute
Bundle::DateTime
and now I'm thinking it again. Either that or we could think about
auto-install (which I think DBI does?)
It may also be useful
Matthew Buckett wrote:
For the strings that are used to create new Date::ICal instances (eg
Date::ICal-new( ical = '19971024T12' ); ) does this module follow
a spec from somewhere else?
There is the Date-Time section (4.3.5) from RFC2445
http://www.ietf.org/rfc/rfc2445.txt which gives a
Matthew Buckett wrote:
If I attempt to parse the ICal date 20030403 I get the DateTime of
20030402T23Z due to currently being in british summer time. To get
around this I can append a Z to the Date to give 20030403Z put this is
not a legal Date accoring to RFC2445.
Does DateTime behaves
Hi Dave,
I am seeing warnings when building some Datetime perl modules
under 5.8.0. They were not there for version 5.6.1.
Can I ignor them?
Thanks
Ron Hill
for perl version 5.8.0
F:\perl_modules\Params-Validate-0.57perl makefile.pl
Checking if your kit is complete...
Looks good
Writing
On Wed, 2 Apr 2003, Joshua Hoblitt wrote:
- should it have a clone method?
Only if it has methods that can change the internal object state after
it's created, like DateTime.pm's set(), set_time_zone(), etc.
- when from_object is used should the value for seconds returned by utc_rd_values be
On Thu, 3 Apr 2003, Hill, Ronald wrote:
I am seeing warnings when building some Datetime perl modules
under 5.8.0. They were not there for version 5.6.1.
Can I ignor them?
Do the tests pass?
Yes, all tests pass :-) I did not think this would be a problem
but I thought you would
Joshua Hoblitt schreef:
- when from_object is used should the value for seconds returned by
utc_rd_values be stored then returned by the object itself? This
would allow chaining of calendars without a loss of precision.
Best would probably be te either use Mayan time (if it is known
(probably
- what other methods would be useful?
Offhand, -set(), -add(), -subtract(), accessors for each component
(baktun, katun, etc.)
-set_baktun or -set( baktun = ... ) ? Should DT::Duration objects be
supported?
Why does from_object take a language parameter? Cut and paste-o? It's
not being
On Thu, Apr 03, 2003 at 10:11:24AM -1000, Joshua Hoblitt wrote:
Some other things I noticed:
Baktun's are numbered 13, 1, 2, 3, ..., 12 (and repeat). Yours are
numbered -inf, ..., -2, -1, 0, 1, 2, ..., +inf, so the module will only
give the correct long count from about 2700BC to about
Joshua Hoblitt schreef:
This would also solve the following problem:
$d = DateTime-new( year = 2003, month = 4, day= 3,
hour = 0,minute = 0, second = 0 );
$md = DateTime::Calendar::Mayan-from_object( object = $d );
print $md-date, \n; #
Joshua Hoblitt schreef:
Wrong answer #2:
print DateTime::Calendar::Mayan-from_object(
object = DateTime-now(time_zone = 'Europe/Amsterdam') );
So you are proposing something like this?
print DateTime::Calendar::Mayan-now( timezone = 'Europe/Amsterdam' )-date;
Either
On Thu, 3 Apr 2003, Joshua Hoblitt wrote:
Actually, I'm starting to think that it might be better instead to simply
have a local_rd_values method and use that instead, maybe.
Or barf on floating times.
Or document it.
In practice, I think _most_ people working with multiple calendar
2) If you want to use the Mayan calendar *now*, as a replacement for the
Gregorian calendar, you also need a time system. And 'our' system is the
only sensible candidate. (Unless the Mayan time system is known?)
You lost me on the you also need a time system. Why?
If you want to
Wrong answer #2:
print DateTime::Calendar::Mayan-from_object(
object = DateTime-now(time_zone = 'Europe/Amsterdam') );
So you are proposing something like this?
print DateTime::Calendar::Mayan-now( timezone = 'Europe/Amsterdam' )-date;
Either that, or your
On Thu, 3 Apr 2003, Eugene van der Pijll wrote:
And this works. But even more people will use DateTime-now. And then
a floating time would be wrong.
Why would a floating time be wrong then?
As an example, the first program I wrote using
DateTime::Calendar::Mayan.
use DateTime;
my
I just used DateTime for the first time .. in a REAL application!
Sure it's just to display the time in a strftime, but it's a REAL
project!
Woohoo!
Cheers!
Rick
--
There are 10 kinds of people:
those that understand binary,
Dave Rolsky schreef:
On Thu, 3 Apr 2003, Eugene van der Pijll wrote:
And this works. But even more people will use DateTime-now. And then
a floating time would be wrong.
Why would a floating time be wrong then?
(I think I meant to say 'a utc time', as now() returns a 'utc' time.
However,
* Hill, Ronald ([EMAIL PROTECTED]) [03 Apr 2003 23:11]:
[...]
It may also be useful if someone who uses Windows, and knows how to
do it, could produce PPMs and a PAR.
I may be able to help out here. I currently have 2 version of perl
(5.6.1 5.8.0) on my W2K box. along with visual studio
20 matches
Mail list logo