test/tsked.cc
/// hack to fill a time structure for testing play_daytime
///
hack to fill a time structure for testing play_daytime
hack to fill a time structure for testing play_daytime
struct tm *mktime(int yday, int wday, int hour, int min, int sec=0 )
{
    static struct tm stm;
    stm.tm_sec =  sec;
    stm.tm_min = min;
    stm.tm_hour = hour;
    stm.tm_wday = wday;
    stm.tm_yday = yday;
    return &stm;
}
struct tm * mktime ( int yday , int wday , int hour , int min , int sec = 0 ) { static struct tm stm ; stm . tm_sec = sec ; stm . tm_min = min ; stm . tm_hour = hour ; stm . tm_wday = wday ; stm . tm_yday = yday ; return & stm ; }
hack to fill a time structure for testing play_daytime
hack to fill a time structure for testing play_daytime