forked from jackd248/temps
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68b9f59
commit 8a06af5
Showing
1 changed file
with
6 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8a06af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will give time in different locale in every country, if the country uses time in format 10.30 AM or 10:30 AM or 10-30 AM and what not, so
this won't work in every country, as it didn't in mine, because my time locale was with a
.
as separator and not:
In Sciter Date.toString will give RFC-822 string representation of date object which will be same in all Locale. Which can be formatted using strftime specifiers which can be used to take care of all the padding and locale. Short and sweet also reduces the load of every second computation.