2020-04-23 21:51:14 +02:00
2020-04-23 21:48:08 +02:00
2020-04-23 21:35:56 +02:00
2020-04-23 21:51:14 +02:00

A (tiny) clock

A tiny program that permits to print the current in different formats.

Formats supported

  • binary, with -b option. Time 21:41:22 prints out as 1001:01001:10110
  • hexadecimal, with -x option. Time 21:42:03 prints out as 9:2a:3
  • octal, with -o option. Time 23 21:43:10 prints out as 11:53:12

Usage

Compile with:

make CFLAGS="-Wall -Werror -pedantic -std=c99" clock

Run with:

./clock

You can also use it with watch:

watch -n 1 ./clock -b

Licence

This software is distributed under the MIT Licence.

Description
A (tiny) clock
Readme 38 KiB
Languages
C 100%