Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system time zone lib #30

Open
macMikey opened this issue Sep 15, 2022 · 5 comments
Open

system time zone lib #30

macMikey opened this issue Sep 15, 2022 · 5 comments

Comments

@macMikey
Copy link
Owner

There was a discussion on the use list about the system time zone. i wonder if we have native api's that would be hookable, and a good example for everyone.

@macMikey macMikey moved this to Todo in LCB-missing-manual Sep 15, 2022
@macMikey macMikey moved this from Todo to code in LCB-missing-manual Sep 15, 2022
@mwieder
Copy link

mwieder commented Feb 28, 2023

There's a crossplatform timezone library already. Mark Waddingham just pointed this out to me last week as part of an answer to a different question.

@macMikey
Copy link
Owner Author

macMikey commented Mar 2, 2023

mark,
i heard that comment, too. do you have more info on it?

@mwieder
Copy link

mwieder commented Mar 3, 2023

I was wondering how to attach a binary file to an extension and Mr Waddingham pointed me to the timezone library which has the necessary binaries in a "code" subfolder (and appropriate platform subfolders under that). As far as the tz library itself, you can't automatically determine your local timezone, but once you've got it you can convert to UTC, perform calculations, and convert back to local time again. The dictionary lists three functions in the library.

@BerndN
Copy link
Collaborator

BerndN commented Mar 31, 2023

The timezone library uses some outdated timezones.
https://quality.livecode.com/show_bug.cgi?id=23012

@macMikey
Copy link
Owner Author

macMikey commented Apr 7, 2023

fun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants