Hi folks,
Does anyone know of a way to get strftime (or DateTime) to return the
appropriate format for years, regardless whether the locale is in
Common Era or Buddhist Era?
I am able to get the current year B.E. like this:
$ LC_ALL=th_TH perl -MPOSIX=strftime -le 'print
-Original Message-
From: Bill Moseley [mailto:[EMAIL PROTECTED]
Sent: Friday, January 20, 2006 10:26 AM
To: datetime@perl.org
Subject: Daylight Saving
I have a zipcode table that lists the city, state, timezone offset (eg
-5) and a flag indicating if the location uses daylight
-Original Message-
From: Dave Rolsky [mailto:[EMAIL PROTECTED]
Sent: Friday, January 20, 2006 11:04 AM
To: datetime
Subject: RE: Daylight Saving
On Fri, 20 Jan 2006, Garrett, Philip (MAN-Corporate) wrote:
-Original Message-
From: Bill Moseley [mailto:[EMAIL PROTECTED
-Original Message-
From: Garrett, Philip (MAN-Corporate)
[mailto:[EMAIL PROTECTED]
Sent: Friday, March 17, 2006 7:14 PM
To: datetime@perl.org
Subject: Formatting dates for locales/time zones
Hi list. Apologies in advance if the formatting is skewed -- using
Outlook web access
-Original Message-
From: Dave Rolsky [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 21, 2006 4:49 PM
To: Garrett, Philip (MAN-Corporate)
Cc: datetime@perl.org
Subject: RE: Formatting dates for locales/time zones
On Tue, 21 Mar 2006, Garrett, Philip (MAN-Corporate) wrote:
sub
-Original Message-
From: Dave Rolsky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 22, 2006 12:17 AM
To: datetime
Subject: RE: Formatting dates for locales/time zones
On Tue, 21 Mar 2006, Garrett, Philip (MAN-Corporate) wrote:
My aversion is more philosophical than practical
On Tue, 12 Dec 2005, Philip Garrett wrote:
Does anyone know of a way to get strftime (or DateTime) to return the
appropriate format for years, regardless whether the locale is in
Common Era or Buddhist Era?
Just to follow up, I ended up solving this by subclassing DateTime. I
added a
-Original Message-
From: Herbert Liechti [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 23, 2006 5:25 AM
To: datetime@perl.org
Subject: Re: keeping an object reference within dt
Dave Rolsky wrote:
On Tue, 21 Mar 2006, Herbert Liechti wrote:
I'm currently implementing a
This should get you what you want:
$str = $datetime-strftime(%l:%M %p); # 4:36 PM
-Original Message-
From: Mark Hedges [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 29, 2006 8:08 PM
To: datetime@perl.org
Subject: printing with AM/PM
Do I have to define a DateTime::Format
Hi list.
Are there any plans to add a from_epoch constructor for
DateTime::LazyInit? The module looks really useful for me, but since I
create almost all my DateTime objects from epoch times, I can't use it.
Philip
Hi.
DateTime::Format::Duration fails 4 tests during its make test on my
system.
The output of the failing tests is included below.
My perl -V is at the bottom, but the short version is Perl 5.8.3 on
Linux.
Regards,
Philip
Failed Test Stat Wstat Total Fail Failed List of Failed
-Original Message-
From: Garrett, Philip (MAN-Corporate)
[mailto:[EMAIL PROTECTED]
Sent: Saturday, April 22, 2006 6:56 PM
To: datetime@perl.org
Subject: RE: from_epoch for DateTime::LazyInit?
-Original Message-
From: Rick Measham [mailto:[EMAIL PROTECTED]
Sent
-Original Message-
From: Rick Measham [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 22, 2006 11:16 PM
To: Garrett, Philip (MAN-Corporate)
Cc: datetime@perl.org
Subject: Re: from_epoch for DateTime::LazyInit?
Garrett, Philip (MAN-Corporate) wrote:
Whoops, the patch I sent
-Original Message-
From: Garrett, Philip (MAN-Corporate)
[mailto:[EMAIL PROTECTED]
Sent: Sunday, April 23, 2006 12:00 AM
To: datetime@perl.org
Subject: RE: from_epoch for DateTime::LazyInit?
-Original Message-
From: Rick Measham [mailto:[EMAIL PROTECTED]
Sent
-Original Message-
From: Garrett, Philip (MAN-Corporate)
Sent: Saturday, April 22, 2006 10:51 PM
To: datetime@perl.org
Subject: RE: from_epoch for DateTime::LazyInit?
-Original Message-
From: Garrett, Philip (MAN-Corporate)
Sent: Saturday, April 22, 2006 6:56 PM
--
From: Rick Measham [mailto:[EMAIL PROTECTED]
Sent: Sun 4/23/2006 6:11 PM
To: Garrett, Philip (MAN-Corporate)
Cc: datetime@perl.org
Subject: Re: from_epoch for DateTime::LazyInit?
Garrett, Philip (MAN-Corporate) wrote
-Original Message-
From: Rick Measham [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 23, 2006 8:13 PM
To: Garrett, Philip (MAN-Corporate)
Cc: datetime@perl.org
Subject: Re: from_epoch for DateTime::LazyInit?
P.S. if you want to run benchmarking on the overloading, and it shows
This is more a database question than a DateTime question. Please try
the dbi-users@perl.org mailing list instead.
-Original Message-
From: Samuel Zheng [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 13, 2006 12:02 AM
To: datetime@perl.org
Subject: perl date
Hi,
I want to use the date
The gmtime() method takes a Unix epoch time (seconds since Jan 1 1970) and
returns a structure that tells you what the date, time of day, day of week and
day of year were at that time in UTC. The java.util.Date class would be a good
place to start (although beware, it deals in *milliseconds*,
From: Zefram [mailto:[EMAIL PROTECTED]
Sent: Sun 8/27/2006 3:07 PM
To: datetime
Subject: Re: month_name() returns UTF-8 or Latin-1?
That refers to the internal UTF-8 flag on the string. That means it's
internally represented using UTF-8, which usually means
McKervey, Nathaniel wrote:
I would like to use your perl module DateTime, but cannot find any
copyright or license information. Can you tell me the terms of use?
For example most modules state
This library is free software; you can redistribute it and/or modify
it under the same terms as
Matthew wrote:
Ahh. And we have customers all over the world. Dang. See, all of this
programming was done back shortly after we sprang forward so we
didn't think about it.
Any suggestions on how I should store a customers timezone in
database?
I think the best way is probably using the
Rafael Morales wrote:
Hi list !!!.
This is my first post, and I need to print the milliseconds in the
date, this is the format I need.
-MM-DD HH-MM-SS-milliseconds.
I have not found how to do this.
perldoc DateTime would have told you how to format milliseconds.
use DateTime;
Matthew wrote:
The documentation on D::E::Recurrence isn't helping me much. What am I
doing wrong here?
my $dt_start = DateTime-new( year = 2007,
month = 1, day = 15, hour = 11);
my $daily_at_10_30 = DateTime::Event::Recurrence-daily(hours = 10,
minutes = 30);
for(my $i = 0; $i
24 matches
Mail list logo