Loading...
Searching...
No Matches
progress.h
Go to the documentation of this file.
1
19#pragma once
20
25
33int progress_hour_pct(int min, int sec);
34
43int progress_day_pct(int hour, int min, int sec);
44
56int progress_week_pct(int wday, int week_start, int hour, int min, int sec);
57
68int progress_year_pct(int year, int yday, int hour, int min, int sec);
69
78int progress_week_day(int wday, int week_start);
79
int progress_hour_pct(int min, int sec)
How far through the current hour it is.
Definition progress.c:74
int progress_day_pct(int hour, int min, int sec)
How far through the current day it is.
Definition progress.c:79
int progress_year_pct(int year, int yday, int hour, int min, int sec)
How far through the current year it is, with February getting its leap day.
Definition progress.c:90
int progress_week_pct(int wday, int week_start, int hour, int min, int sec)
How far through the current week it is, counting from the day the week starts on.
Definition progress.c:84
int progress_week_day(int wday, int week_start)
How many days the week has run, counting the first day as day 1.
Definition progress.c:67