Skip to content

aurimus/berlinclock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published