holobeat/billing-calendar-generator
Weekly Billing Calendar Generator
This program outputs SQL INSERT statement for all weeks of the billing calendar.
Usage:
bcgen year weekday-start [tableName,yearField,weekField,startField,endField]
Examples:
bcgen 2024 thursday
bcgen 2024 monday calendar,billing_year,billing_week,start_date,end_date
Output:
INSERT INTO calendar (billing_year, billing_week, start_date, end_date)
VALUES (2024, 1, '2023-12-28', '2024-01-03'), ..., ...,
(2024, 52, '2024-12-19', '2024-12-25');
zig build
or
zig build-exe -lc -O ReleaseSmall .\src\main.zig --name bcgen