s2dblocks

[archived] statusbar blocks for dwm
git clone https://hhvn.uk/s2dblocks
git clone git://hhvn.uk/s2dblocks
Log | Files | Refs

time.c (228B)


      1 #include <stdio.h>
      2 #include <time.h>
      3 #include "status2d.h"
      4 
      5 int
      6 main(void) {
      7 	char buf[BUFSIZ];
      8 	time_t t = time(NULL);
      9 
     10 	strftime(buf, sizeof(buf), "%H:%M:%S", localtime(&t));
     11 	s2d_print("%s", buf);
     12 	s2d_finish();
     13 	return 0;
     14 }