Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

berlinclock

Command line Berlin clock (mengenlehreuhr) class implementation.

Supports 24 hours (instead of usual 25). Outputs a mengenlehreuhr string in format:
X-OOOO-OOOO-OOOOOOOOOOO-OOOO.

Which means:
ON/OFF - Hours (5 for each X) - Hours - Minutes (5 for each X) - Minutes

Usage:

bundle
ruby mengenlehreuhr.rb (outputs string for current time)
rspec mengenlehreuhr_spec.rb (runs the tests)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors