๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ u โ€บ norayr โ€บ 16112 captured on 2024-05-10 at 11:57:44. Gemini links have been rewritten to link to archived content

View Raw

More Information

โžก๏ธ Next capture (2024-05-26)

-=-=-=-=-=-=-

Comment by ๐Ÿ™ norayr

Re: "I've been enjoying using Pascal for my Farkle game, but one..."

In: s/pascal

interesting.

did you try to export TZ variable?

like

export TZ='Asia/Yerevan'

and then in the same shell run the pascal program?

probably you've seen it but

โ€” here are freepascal docs on date/time routines.

๐Ÿ™ norayr [mod]

Apr 12 ยท 4 weeks ago

8 Later Comments โ†“

๐Ÿ€ gritty [OP] ยท Apr 12 at 22:24:

@norayr I think I exported tz in my .profile but I'll have to check. Hopefully that does the trick.

๐Ÿ™ norayr [mod] ยท Apr 13 at 07:06:

i am not sure you should. maybe it is already in the environment indeed?

env | grep TZ

i don't know. i didn't he time to test the functions myself yet. i'll try.

๐Ÿ™ norayr [mod] ยท Apr 13 at 07:27:

so

โ€” farkle

is now in pascal?

would love to look at gemini cgi code in pascal.

๐Ÿ€ gritty [OP] ยท Apr 13 at 21:53:

well, half of it is. Main program is python but all the supporting functions are pascal because that's when I discovered it.

It's a private repo in tildegit but once I open it up I'll post the link. I'm a total amateur so don't judge too hard, heh.

๐Ÿ™ norayr [mod] ยท Apr 13 at 23:58:

there is a supportive pascal community in #fpc room on irc.libera.chat. but the chan administrator afraids of bots and spam and she is a little bit overprotective about the chat.

if you cannot enter, you can go to #pascal room and ask joanna to let you in #fpc. or tell me somehow and i'll tell her.

on xmpp i have a pascal room: xmpp:pascal@conference.spyurk.am?join

or room: pascal ; conference server: conference.spyurk.am.

od if it is closed you need to tell me your jabber id so i invite you. (: i am also afraid of spam, it happens. (:

๐Ÿ drh3xx ยท Apr 26 at 18:04:

bug report: 2 triples only gave me 1500 not 2500. afraid I can't remember the two values as didn't anticipate an issue. Could be straight up bug in double triple case or could be parse issue consuming part of the double before fully matching the case.

๐Ÿ€ gritty [OP] ยท Apr 27 at 00:03:

@drh3xx thanks for the report! getting all the edge cases down was a bit challenging. I'll see if I can run some more on the triples and spot it when I get some time. currently working on a monthly leaderboard feature.

๐Ÿ€ gritty [OP] ยท Apr 30 at 00:45:

@drh3xx it was a simple bug, I just had the wrong value in there. Thanks for id'ing. fixed.

Original Post

๐ŸŒ’ s/pascal

I've been enjoying using Pascal for my Farkle game, but one recent annoyance is timezones. On Linux I can't find a function that properly respects the local timezone of the machine. universaltolocal() doesn't work because tzoffset() is always 0. I just have to manually set the offset, but I feel like I shouldn't have to. Anyways, other than that, it's been fun.

๐Ÿ’ฌ gritty ยท 9 comments ยท 1 like ยท Apr 12 ยท 4 weeks ago