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

Modify nn to add ± 30 minutes #288

Open
ghost opened this issue Jul 27, 2023 · 4 comments
Open

Modify nn to add ± 30 minutes #288

ghost opened this issue Jul 27, 2023 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 27, 2023

Hi All,

My System is in CET time, and I want additional time in IST Time which is (+3.5 hours) difference. How to achieve it?

w+3:nn HH:nn\ndd.mm.yyyy dd.mm.yyyy\n" IST CET"

image

CET time is 10:25 AM
Now IST Time shows 01:25, I want to show it as 01:55

@ghost
Copy link
Author

ghost commented Jul 30, 2023

@White-Tiger can you provide me some suggestions please?

@cclambie
Copy link

cclambie commented Aug 1, 2023

@White-Tiger what if you allowed nn to have minutes added as well as the w/W?
I just tried W+9:nn+30\n dd.mm\n"AEST" for a test... but that just added "+30" in text
image
Maybe you could either add function to allow decimals in the addition, or adding to the minutes, which might be easier.

@cclambie
Copy link

cclambie commented Aug 1, 2023

I think this is dealt with in the method here:

} else if((*fmt=='w'||*fmt=='W') && (fmt[1]=='+'||fmt[1]=='-')) {

and possibly adjusting the next method/ function for minutes with a similar rule would solve this.
@viku7474 maybe you can fork this and make the change/ update to suit.

@ghost
Copy link
Author

ghost commented Aug 2, 2023

Thanks @cclambie I am not an expertise in programming, let me take a look and find. thanks

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

No branches or pull requests

1 participant