/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <time.h>

int between1200and1210()
{
   time_t t;
   struct tm *ts;
   int hh, mm, ss;
   t = time(NULL);
   ts = localtime(&t);
   hh = ts->tm_hour;
   mm = ts->tm_min;
   ss = ts->tm_sec;
   return (hh == 12) && (mm >= 00) && (mm < 10);
}

int main()
{
    printf("%s\n", between1200and1210() ? "true" : "false");
    return 0;
}
