Code Monkey home page Code Monkey logo

billing-calendar-generator's Introduction

Weekly Billing Calendar Generator

This program outputs SQL INSERT statement for all weeks of the billing calendar.

  • The weekday argument accepts long and short name, case agnostic (mon, Mon, Monday, MON).
  • If one or more days of the billing week happen to be in the next year, that week is not part of the output.
  • First billing week of the year may start at the end of the previous year if any of its days are in the requested year. For example, billing week from 2023-12-28 to 2024-01-03 is considered first billing week of year 2024.

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');

Build

zig build

or

zig build-exe -lc -O ReleaseSmall .\src\main.zig --name bcgen

billing-calendar-generator's People

Contributors

holobeat avatar

Stargazers

Saulius Krasuckas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.