Display a customizable clock in the status bar.
The clock can be installed through Atom. Alternatively, you can use
apm install atom-clock
moment.jsis supported by
It specifies the format to use when displaying the time. The package uses
moment.js to format the time, so please refer to the related
moment.js documentation. The default value for the time format is
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 enabled, a tooltip will be shown when you hover over the time in the status bar to display the time in an alternate format. By default the tooltip is disabled, and the format is
If enabled, both the status bar clock and the tooltip clock (if enabled) will display UTC time instead of local time.
If ticked, a clock icon will be shown to the left of the time. It is unticked by default.
||default date format|
||short date format|
||long date format|
||space waster format|
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
Here are some examples for locales different from English.
When enabled, the tooltip will contain an extended (and configurable) version of the current time/date.
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!
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.