clock

Statusbar clock in Hare
Log | Files | Refs

commit 3d87463921de429859c9ad1cb068a3a683c3e831
Author: Joakim <joakim@jnisse.xyz>
Date:   Wed, 24 Apr 2024 23:36:58 +0200

Initial Commit.

Diffstat:
Aclock.ha | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/clock.ha b/clock.ha @@ -0,0 +1,10 @@ +use time::date; +use fmt; +use io; +export fn main()void = { + const d = time::date::now(); + const sd = time::date::asformat("%F %H:%M (%W)",&d)!; + fmt::println(sd)!; + free(sd); +}; +