clock

Statusbar clock in Hare
Log | Files | Refs

clock.ha (170B)


      1 use time::date;
      2 use fmt;
      3 export fn main()void = {
      4 	const d = time::date::now();
      5 	const sd = time::date::asformat("%F %H:%M (%W)",&d)!;
      6 	fmt::println(sd)!;
      7 	free(sd);
      8 };
      9