perl.datetime
  Home Bitcoin Casinos 2022 FAQ Contact Sign in
perl.datetime only
 
Advanced search
May 2010
motuwethfrsasuw
     12 17
3456789 18
10111213141516 19
17181920212223 20
24252627282930 21
31       22
2010
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2010 2008 2007 2006
total
perl.datetime Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Re: Span subclass in SpanSet         


Author: Sean Robinson
Date: May 13, 2010 16:03

On 05/13/2010 03:48 AM, Herbert Liechti wrote:
> 2010/5/13 Sean Robinsonsccmail.maricopa.edu>
>
>> I am attempting to track individual spans by tagging a span. My first
>> procedure has been to subclass DateTime::Span and add an instance var to
>> hold the tag. But when I submit the tagged Span to SpanSet, the Span listed
>> in the SpanSet is a DateTime::Span object, not my subclass.
>>
>> How can my DateTime::Span subclass objects be stored and used in
>> DateTime::SpanSet?
>>
>
> I had the same problem some time ago. I found no really good solution. I
> made the external reference (or tag) after creating the Span directly in the
> object, all other attempts are (afaik) not working. A solution for this
> would be a big plus in future versions.
>
Show full article (1.33Kb)
1 Comment
  Re: Getting a named DateTime::TimeZone from an offset         


Author: Eugene van der Pijll
Date: Dec 26, 2008 13:53

Randy J. Ray schreef:
> In fact, since I'm really just after the short names for the sake of
> pretty-printing dates for end-users who aren't impressed by "-08:00"
> where they'd expect "PDT", I can use any of the matching zones. It
> just seems a waste to have to iterate over the whole set to get the
> ones that match a specific offset.

Bad example, as -8:00 is not PDT. PDT is -7:00, but so is MST. Even at
the same time, as some regions of the US don't observe summer time.

And that even ignores the rest of the world; for example, at this time
of year, -4:00 is known as AST, AMT, GYT, and BOT.

The only way in which you can ever do something like this is to restrict
yourself explicitly to a few timezones, in which case it isn't too hard
to iterate over them:

my $dt = DateTime::Format::ISO8601->parse_datetime( '20080701T000000-0400' );

print map { $_->short_name_for_datetime($dt) }
grep { $_->offset_for_datetime($dt) == $dt->offset }
map { DateTime::TimeZone->new(name => $_) }
qw/EST5EDT CST6CDT MST7MDT PST8PDT/;

Eugene
no comments
  ANNOUNCE: DateTime::Set 0.26         


Author: Flavio S. Glock
Date: Dec 25, 2008 06:48

0.26 2008-12-25

- fixed DateTime::Spanset current() and set_time_zone() methods.
Report and tests by Elliot Shank.

Flávio S. Glock
no comments
  ANNOUNCE: DateTime::Format::SQLite v0.10         


Author: CFAERBER
Date: Sep 20, 2008 11:51

Claus Färber schrieb:
> Hi! A new module, DateTime::Format::SQLite, is available:
...
> DateTime::Format::SQLite v0.01_20090813
> - initial version

I've just uploaded v0.10. The biggest change is the version number.

Claus Färber
no comments
  RFC: temporal data facilities of my DBMS language Muldis D         


Author: Darren Duncan
Date: Sep 19, 2008 03:15

Hello,

As some of you may know, I've been developing a new language for defining
and interacting with relational databases called Muldis D. One can
conceptualize this language as a generalization of the various...
Show full article (6.46Kb)
no comments
  ANNOUNCE: DateTime::TimeZone 0.80         


Author: Dave Rolsky
Date: Sep 15, 2008 07:42

0.80 2008-09-15

- This release is based on version 2008g of the Olson database. The
major changes in this release are for Mauritius, Morocco, Pakistan,
Argentina, and Brazil.

/*==========================
VegGuide.Org
Your guide to all that's veg
==========================*/
1 Comment
  ANNOUNCE: DateTime::Locale 0.42         


Author: Dave Rolsky
Date: Sep 12, 2008 09:27

0.42 2008-09-12

- Based on CLDR 1.6.1, but this has no changes in the data we use. I
just used 1.6.1 so people wouldn't ask me why I don't use 1.6.1 ;)

- In the switch to CLDR (back in 0.30), I accidentally dropped a
number of hard-coded aliases, notably for 'C'. These aliases have
been restored. Reported by Adam Kennedy. RT #39208.

- Generation of aliases based on the 3-letter ISO code for countries
is now based on the most recent version of ISO639.

/*==========================
VegGuide.Org
Your guide to all that's veg
==========================*/
no comments
  DateTime and Test::MockTime         


Author: Mark Pitchless
Date: Aug 28, 2008 02:26

Hello All,

For some reason using DateTime->now doesn't get effected by using the
Test::MockTime module to change the time. The Test module overrides
the time builtin, which seems to be what DateTime::now is using.

#!/usr/bin/perl
use DateTime;
use Test::MockTime qw/:all/;

my $start_time = time;
print "T: $start_time\n",
"DT:".DateTime->now()."\n";
print "----\n";
set_relative_time(6000);
my $rel_time = time;
print "T: $rel_time diff:".($rel_time-$start_time)."\n",
"DT:".DateTime->now()."\n";
Show full article (1.81Kb)
1 Comment
  Contributing to DateTime::Event         


Author: Kristian Flint
Date: Aug 27, 2008 10:21

Hi everybody,

I've not been using DateTime for very long and got recommended it by our
hosting partners, really happy with it etc... But I've come across a
situation where I want to do something standardish with it and there
doesn't seem to be any provision for it. The reason I'm mailing the list
is that I'm amazed no-one has done this before which is leading me to a
suspicion that there's a good reason why!

So, what I want to do is get the the Bank Holidays for the UK and a few
other methods like 'is_this_a_bank_holiday( $dt )' or perhaps something
like 'number_of_working_days_in( $dt1, $dt2 )' to take into account
weekends. And so on as the project I'm working on requires.
Now, the reason I think this is possible is that looking at:
http://www.berr.gov.uk/employment/bank-public-holidays/index.html
The dates don't appear to be particularly random (they all have v.simple
rules) and the only dates I don't really understand, the easter ones,
I'm planning on using DateTime::Event::Easter to help me out.
Show full article (1.24Kb)
6 Comments
  ANNOUNCE: DT::TZ 0.7903         


Author: Dave Rolsky
Date: Aug 22, 2008 11:58

0.7903 2008-08-22

- The DateTime::TimeZone->names_in_country() method was broken when
called as a method. Reported by Lars Eggert. RT #38665.

-dave

/*==========================
VegGuide.Org
Your guide to all that's veg
==========================*/
no comments
1 2 3 4 5 6 7 8 9