Skip to content

ottojo/GoCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

GoCalendar

GoCalendar provides utility to convert dates between the julian and the gregorian calendar.

##Usage

import "github.com/ottojo/GoCalendar"

day, month, year := GoCalendar.GregorianToJulian(15, 07, 1337);

println("Date in julian calendar: " +
  strconv.Itoa(day) + "." +
  strconv.Itoa(month) + "." +
  strconv.Itoa(year));
  
day, month, year = GoCalendar.AddDays(day, month, year, 5, "j");    //"j" - Julian calendar, "g" - Gregorian calendar
println("5 days later: : " +
  strconv.Itoa(day) + "." +
  strconv.Itoa(month) + "." +
  strconv.Itoa(year));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages