-
Notifications
You must be signed in to change notification settings - Fork 169
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
Added offset option #153
base: master
Are you sure you want to change the base?
Added offset option #153
Conversation
Added support for offset option which can be used to display multiple timezones
Changed type to long instead of double to avoid typecasting issues
My domain computer time cannot be changed, but it is 3 minutes slow. This feature will be very useful to me. But I'm do not know how to compile, and hopefully there will be a compiled version, absolutely。 |
I have uploaded the built binary from my system. |
Since you're unable to change your Computer's time, does that mean you're not having administrator rights? I kinda believe it might be useful to have some sort of "real time" display even if the Computer's time is wrong, so I'd like to know the reason behind your problem (especially if it's a Chinese thing) |
My computer is the company's desktop, which is limited by some permissions and policies, and is offline, and the computer's time is forced to synchronize with the server, so it should be the server time is three minutes slow. But it's odd that some of my colleagues' computer time is normal. |
Thank you for sharing the file, but I replaced the original file and it prompted (api error(1). error loading :t-clock64.dll). My version is 2.4.4.492. Can you help me pack your whole program? thank you! |
I will give it a go when I can. |
Can you try this, should have everything you need |
1 similar comment
Can you try this, should have everything you need |
+1 for this. I am using this version to display two timezones, without the leading zero on the hour |
Added support for offset option which can be used to display multiple timezones.
Date / Time Offset
o ± x = Changes the current time ± x given minutes.
Can be used to display multiple timezone information with full support of other Formatting options. Anytime the format encounters ‘o±x’ pattern, the succeeding format pattern works on the offset time.
For example, if your system is set for India Standard Time, and you want to also see the time for Central Standard Time (10h 30m = 630m behind IST), you can specify
"IST:" hh:nn:ss tt "CST:"o-630hh:nn:ss tt
anything after the ‘o-630’ will use the offset time to be displayed.
We can have multiple offsets to show more timezones. Note that we will need to calculate the offset from the last offset time.
We can get it to look like
using the format string:
"IST"\nhh:nn:ss tt\nddd, dd mmm yyyy\n\n"CST"\no-630hh:nn:ss tt\nddd, dd mmm yyyy\n