Skip to content

shinriyo/jcalender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jCalender

Overview

Description

日本のカレンダー

http://www.h3.dion.ne.jp/~sakatsu/holiday_logic5.htm#Python これをベースにした。

Demo

N/A

VS.

N/A

Requirement

go version go1.3.3 or higher

Usage

テスト方法

go run test/test.go

インポート方法

import (
  jc "github.com/shinriyo/jcalender"
)

jcalenderは長いので省略したjcにエイリアスしている。

使い方

package main

import (
  jc "github.com/shinriyo/jcalender"
  "fmt"
  "time"
)

func main() {
  params := jc.Params{Year: 1984, Month:1, Day:1, Date:time.Time{}}
  name := jc.GetHolidayName(params)
  // 元旦
  fmt.Printf("Name: %#v\n", name)
}

結果

Name: "元日"

注意

2016年以降は対応できないかもしれません。

Install

go get github.com/shinriyo/jcalender

Contribution

sinriyo

Licence

CopyRight(C) K.Tsunoda(AddinBox) 2001 All Rights Reserved. (http://www.h3.dion.ne.jp/~sakatsu/index.htm)

Author

shinriyo

K.Tsunoda

Releases

No releases published

Packages

No packages published

Languages