Log in

No account? Create an account
datetime.perl.org - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

datetime.perl.org [Mar. 4th, 2004|09:19 pm]
Brad Fitzpatrick
[Tags|, ]

whoa. yes!


[User Picture]From: brad
2004-03-04 09:45 pm (UTC)
Maybe I'm tired, but I couldn't parse your comment.

Use sentences and whitespace please. :-)
(Reply) (Parent) (Thread)
From: sheehan
2004-03-04 09:48 pm (UTC)

stream of conscious

... i like ... :)

do the existing date/time perl modules suck or something?

(Reply) (Parent) (Thread)
[User Picture]From: ydna
2004-03-04 09:50 pm (UTC)

Re: stream of conscious

It's not that they suck (well, some do a little). It's that there's so damn many of them. Who needs six thousand ways to deal with time? Perl programmers apparently. Dave Rolsky is my rockstar for tackling this nightmare.
(Reply) (Parent) (Thread)
From: billemon
2004-03-05 06:29 am (UTC)

Re: perl's new slogan ...

There's More Than One Way To Date It.
(Reply) (Parent) (Thread)
[User Picture]From: brad
2004-03-04 09:56 pm (UTC)

Re: stream of conscious

Pretty much. Like ydna said, there are a lot of them, they don't play well together, they're not polished, and they're not written by people that really understand the time problem.

Timezones, for instance, aren't covered anywhere. Bullshit like this doesn't fly with me:

my @la_time;
local $ENV{'TZ'} = "America/Los_Angeles";
@la_time = localtime();

Which works because the C library can do timezones. And which (I believe) will only work correctly if the system clock is set to UTC.

But you can't ask Perl (before these modules), "Given this time in this timezone, what's that time in this other timezone?"
(Reply) (Parent) (Thread)
[User Picture]From: kunzite1
2004-03-04 10:00 pm (UTC)

i am very sorry. :) ... i will attempt to do a better job with my comment on the second try.

in s2, comments are timestamped w/ gmt times. in which time zone are s1 comments timestamped? i believe that they are stamped with the time zone of the poster. now that i think about it, i remember there being a page in the faq about this very issue... next topic.

were you planning on implementing some code that would print the time of a comment and/or an entry in both the time zone of the poster and the person viewing the journal?

this process may make the layout of comments and entries quite bulky. it would also require another data field in the userinfo records of each lj user to hold the time zone information.

im not quite sure what the purpose of this post was, so, i might not be in a correct position to ask such things.
(Reply) (Parent) (Thread)
[User Picture]From: brad
2004-03-04 11:24 pm (UTC)
LJ's timezone handling is non-existent. We side-step the problem various ways, all of which are lame in varying degrees.

S1 comments show US Pacific time.... that should change to UTC just to be consistent. But yeah, we'll be adding timezone support.... sometime.
(Reply) (Parent) (Thread)
[User Picture]From: kunzite1
2004-03-05 08:45 am (UTC)

and this new perl stuff would assist in the implementation of timezones?
(Reply) (Parent) (Thread)
[User Picture]From: brad
2004-03-05 09:07 am (UTC)
Most likely. It seems very comprehensive.
(Reply) (Parent) (Thread)
[User Picture]From: kunzite1
2004-03-05 09:11 am (UTC)

Cool. I'd be interested in seeing how it would be put together.

Off-topic question, if I may, two of them actually...

One: Could I advertise my new web design business in damnportlanders?

Two: My girlfriend, giapet, is making a new layout for my site Portland LiveJournal Meetups and is interested in using a photo of you in a collage of other Portland Area LJ users.

Just thought it would be best to ask your permission on both matters, as the first could be a violation of the LiveJournal TOS, and the second would be using an image of you without your knowledge.
(Reply) (Parent) (Thread)
[User Picture]From: brad
2004-03-05 09:13 am (UTC)
Seems anything goes in damnportlanders, so don't ask me... I don't run it. :-) I'd say it's probably okay, though.

As for the picture: is it a good one? :)
(Reply) (Parent) (Thread)
[User Picture]From: penguinfairy
2004-03-04 10:26 pm (UTC)

I'm kind of confused on this, as well.

I think what they were trying to say was:

If I post an entry at EST, it shows up as my timezone. However, when someone comments to the entry in GMT, the comment time is from a different time zone. So, for the comment, next to the time, you implicate the timezone the commenter's in, or implicate the timezone that is used throughout livejournal for comments.

And are comments times for S1 and S2 in the same time zones? It seems that S2 comments are clocked at GMT, but what time zone are S1 comments clocked in?
(Reply) (Parent) (Thread)