Comments (3)
With system short and long time formats, do you mean something like this?
Short -> 1/1/1970, 4:20 pm
Long -> Fri, November 1st 1970, 4:20 pm
I was thinking about extending the README a little bit, still I'm not sure about what system format means.
from atom-clock.
Sorry I wasn't able to get back to you on this. I got hit by the blackout yesterday and had no power or Internet for 20+ hours. On OS X (and Windows) there is a section in the OS-level preferences that allows you to set the standard date and time settings for your region. There are generally short and long date and time formats. Here's what the screen looks like in OS X:
It would be great if I could just say something like os-short
and it would read the format from the OS and use that.
It looks like LT
and LTS
come close in that they are localized based on the detected region.
from atom-clock.
You're right, Moment supports a long format with localization support too.
One possible solution could be provide some default formats, and give the user the chance to use one of those. This would mean:
- A boolean flag in the configuration for 'Use default format'
- A small map with some default formats translated into Moment formats.
defaultFormats:
os-short: 'LT'
os-medium: 'LTS'
os-long: 'LTS z'
...
Still, should take a closer look to some other systems, and see if there are particular formats that make this worth it.
from atom-clock.
Related Issues (20)
- Tooltip alert for UTC time HOT 7
- Just an idea I had now with the last update... HOT 2
- README image are no longer displayed in Atom settings view HOT 2
- Failed to activate the ide-python package HOT 3
- naziv HOT 1
- Day Fraction HOT 1
- Add a hot key to have a notification HOT 1
- Uncaught Error: Cannot find module 'moment' HOT 2
- Uncaught TypeError: Cannot read property 'enable' of undefined HOT 3
- failed to activate the status-bar package when atom-clock enabled HOT 4
- Function.extractParams is deprecated. HOT 2
- Failed to load the atom-clock package HOT 2
- Incorrect local time HOT 5
- pjkmô
- Add possibility to copy time into clipboard HOT 6
- customizing HOT 5
- Suggestion HOT 4
- 'tk' locale not working
- Wrong screenshot for 12 hour
- HTMLDocument.registerElement is deprecated.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom-clock.