ng-binary-clock
v1.0.0
Published
NgBinaryClock is an angular module which displays the system time as a binary clock.
Downloads
10
Readme
NgBinaryClock
NgBinaryClock is an angular module which displays the system time as a binary clock.
Installation
npm install ng-binary-clock
Dependencies
npm install @angular/[email protected] @angular/[email protected] [email protected]
Usage
Import the module in app.module.ts. Instead of importing the module directly, use forRoot()
to only add the contained service to the root injector.
import { NgBinaryClockModule } from 'ng-binary-clock';
@NgModule({
imports: [
NgBinaryClockModule.forRoot()
],
})
Template
<ng-binary-clock></ng-binary-clock>
What is a binary clock?
A binary clock is a clock that displays the time of day in a binary format. Originally, such clocks showed each decimal digit of sexagesimal time as a binary value, but presently binary clocks also exist which display hours, minutes, and seconds as binary numbers. Most binary clocks are digital, although analog varieties exist. True binary clocks also exist, which indicate the time by successively halving the day, instead of using hours, minutes, or seconds. Similar clocks, based on Gray coded binary, also exist. Wikipedia