Display a customizable clock in the status bar.
The clock can be installed through Atom. Alternatively, you can use apm
:
apm install atom-clock
- Customizable time format: any format supported by
moment.js
is supported byatom-clock
as well! - i18n: specify any locale to get the date in your language
- Multi-platform package: the clock works with Linux, Windows and OS X
It specifies the format to use when displaying the date. The package uses moment.js
to format the time, so please refer to the related moment.js
documentation. The default value for the date format is H:mm
.
It specifies the locale the clock will use when displaying the time. Its default value is en
. Please check the moment.js
locale folder for a complete list of all supported locales.
It specifies how many seconds should run between two time updates, and it is defaulted to 60 (one update per minute).
If ticked, a clock icon will be shown to the left of the time. It is unticked by default.
When a different locale is specified in the settings, the date language will change accordingly. A locale can be defined with its substring, and moment.js
will take care of selecting the first locale it knows. A substring can be specified in many ways. As example, the Chinese locale for China can be expressed as zh-cn
, zh_cn
, zh-CN
or zh_CN
.
Here are some examples for locales different from English.
locale | code | display |
---|---|---|
Arabic | ar |
|
Belarusian | be |
|
Tibetan | bo |
|
Russian | ru |
|
Chinese | zh_CN |
Like what you see? Please, feel free to fork this repository, and make any change you like. If you want to propose a nice feature, please create a separate branch on your fork, named after the feature you want to implement, then make a pull request from that branch. Also, before actually getting to work, just consider I'm trying to keep this package as simple and minimal as possible!