Crates.io | businessday_jp |
lib.rs | businessday_jp |
version | 0.1.1 |
source | src |
created_at | 2017-11-08 01:12:41.550482 |
updated_at | 2017-11-09 00:16:54.909294 |
description | businessday_jp |
homepage | |
repository | https://github.com/atsushi130/businessday-jp |
max_upload_size | |
id | 38547 |
size | 17,718 |
[dependencies]
businessday_jp = "0.1.1"
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>;
This project is dual-licensed under MIT and Apache 2.0.