Skip to content

Didula98/Digital-Clock-Specification-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Digital-Clock-Specification

This digital clock prints the current time on the linux terminal. If a color is given as an argument to the program, the program prints a colored output.

Inputs:

Command-line arguments:

If a colour is given as an argument to the program with the ‘-c’ flag, the program prints the clock using the given colour. If no argument is given, it prints white as default.

Eg:

python filename.py -c red

red

python filename.py -c green

green

program supports for these standard colors - black, red, green, yellow, blue, magenta, cyan

If a colour is given as -c random, it prints the output with a random color gradient

Eg:

python filename.py -c random

random1

random2

If a command is given as --animated, it prints animated color output

Eg:

python filename.py --animated

ezgif com-gif-maker

If -h flag is given or the given arguments are invalid, program prints the usages of your program (how the arguments should be given).

I did the same implementation using C programming and the reference code was added to the repo.

About

This is digital clock implementation using python arrays

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors