Skip to content

softprops/emoji-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

34 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

emoji clock Build Status

πŸ•’ πŸ‡ an emoji clock to make sure you're never late

Long ago people used clocks to tell time. These clocks had faces 😯 with hands πŸ‘ and people could easily read them at a glance. Minutes mattered less than hours. These were mostly replaced with digial clocks with numbers. Today, we have emoji!

πŸ“¦ install

cargo

Run the following to have the emojiclock binary installed under ~/.cargo/bin

$ cargo install emoji-clock-cli

🀸 usage

The following is the output of the cli's help flag. Enjoy.

$ emojiclock --help
emoji-clock 0.0.0
softprops <d.tangren@gmail.com>
renders time as an emoji clock

USAGE:
    emojiclock [FLAGS] [time]

FLAGS:
    -c, --copy        Copies to clipboard (where possible)
    -h, --help        Prints help information
    -m, --meridiem    Adds an indicator for what half of the day this time falls within (ante meridiem or post meridiem)
    -V, --version     Prints version information

ARGS:
    <time>    An expression similar to expression that can be provided to GNU date -d expr -
              http://man7.org/linux/man-pages/man1/date.1.html#DATE_STRING [default: now]

specifying time

By default, emojiclock will print out the emoji clock closet to "now" but you can also provide a time that's relative to "now" in roughly english form ( as supported by the chrono-english crate ) as an argument.

for hour in `seq 1 12`; do emojiclock "$hour hours"; done
πŸ•‘
πŸ•’
πŸ•£
πŸ•£
πŸ•£
πŸ•¦
πŸ•§
πŸ•œ
πŸ•
πŸ•ž
πŸ•Ÿ
πŸ• 

clipboard

It's often the case that you don't just want to see the current time in emoji but you want to capture it to use elsewhere. Use the -c ( or --copy ) flag to copy the output to your clipboard

$ emojiclock -c
# paste it somewhere nice

which 12 hours

Sometimes having context for a.m. or p.m is useful. You can always open your apartment window and see for yourself, but when that's not convenient enough pass the -m ( or --meridiem ) flag to capture that context

$ emojiclock -m
emojiclock -m
πŸ• πŸŒ™

Doug Tangren (softprops) 2018

About

πŸ•’ πŸ‡ I'm late I'm late for a very important date

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages