Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-09

OT: Cute little toy program

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Terry Haimann

Wrote a toy app that calculates time/date on Mars. Note as written it won't work under Windows. I didn't see a way to write a generic routine to get the Time- Zone. I ended up running an external process using the Linux Date Program.

www.HaimannOnline.com/Astronomy/MartianTime.zip

Terry H.

Reply by email

Mark Morgan Lloyd
to Terry Haimann
Terry Haimann wrote 6 lines
Wrote a toy app that calculates time/date on Mars. Note as written it won't work under Windows. I didn't see a way to write a generic routine to get the Time- Zone. I ended up running an external process using the Linux Date Program. www.HaimannOnline.com/Astronomy/MartianTime.zip

Is that the time zone on Earth or on Mars? :-) There was discussion recently on getting uncorrected UTC time which concluded that it was much easier on unix than on Windows, in practice I usually delegate as much as possible to a backend database.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Graeme Geldenhuys
to Terry Haimann: Wrote a toy app that calculates time/date on Mars. Note as written it won't work under…
Terry Haimann wrote
Wrote a toy app that calculates time/date on Mars.

We should add that program to the the collection of "odd" apps. I have written one (code is still somewhere on my system) that calculates the Stardate (as defined in the Star Trek series). For the life of me, I don't know why I needed it, but it is written. :-)

Regards,
- Graeme -

Reply by email

Terry Haimann
to Mark Morgan Lloyd: Is that the time zone on Earth or on Mars? :-) There was discussion recently on getting…
Mark Morgan Lloyd wrote 13 lines
Terry Haimann wrote: > Wrote a toy app that calculates time/date on Mars. Note as written > it won't work under Windows. I didn't see a way to write a generic > routine to get the Time- Zone. I ended up running an external > process using the Linux Date Program. > > www.HaimannOnline.com/Astronomy/MartianTime.zip Is that the time zone on Earth or on Mars? :-) There was discussion recently on getting uncorrected UTC time which concluded that it was much easier on unix than on Windows, in practice I usually delegate as much as possible to a backend database.

Yes Earth Time Zone. No database in this app. I need to know the time on earth to calculate time on Mars. Sorry about the slow resoponse, I am at a star party.

Reply by email

Terry Haimann
to Graeme Geldenhuys: We should add that program to the the collection of "odd" apps. I have written one (code…
Graeme Geldenhuys wrote 17 lines
On 14/09/12 17:33, Terry Haimann wrote: > Wrote a toy app that calculates time/date on Mars. We should add that program to the the collection of "odd" apps. I have written one (code is still somewhere on my system) that calculates the Stardate (as defined in the Star Trek series). For the life of me, I don't know why I needed it, but it is written. :-) Regards, - Graeme - -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

How do I do that?

Reply by email

Marco van de Voort
to Graeme Geldenhuys: We should add that program to the the collection of "odd" apps. I have written one (code…
Graeme Geldenhuys wrote
We should add that program to the the collection of "odd" apps. I have written one (code is still somewhere on my system) that calculates the Stardate (as defined in the Star Trek series). For the life of me, I don't know why I needed it, but it is written. :-)

I can donate calculating Easter and all movable holidays in FPC 0.99.8 style assembler :-)

Reply by email