Skip to content

atsushi130/businessday-jp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

businessday-jp

MIT / Apache2.0 dual licensed crates.io Document

dependencies

[dependencies]
businessday_jp = "0.1.1"

Usage

extern crate businessday_jp;
extern crate chrono;

use businessday_jp::BusinessdayService;
use chrono::{Local, TimeZone};

fn main() {
    let date = Local::now();
    if HolidayService.is_businessday(date, 2) {
        println!("businessday");
    }
}

BusinessdayService API

fn is_businessday(&self, date: DateTime<Local>, at_businseeday: u32) -> bool;
fn get_businessday(&self, year: i32, month: u32, at_businessday: u32) -> DateTime<Local>;

License

This project is dual-licensed under MIT and Apache 2.0.

About

No description or website provided.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
license-apache.md
MIT
license-mit.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages