Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mish33/go-calendar

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mish33/go-calendar

  • v0.0.0-20120110040806-86c1e543f706
  • Source
  • Go
  • Socket score

Version published
Created
Source

Date manipulation functions.

// IsLeap returns true if year is a leap year. func IsLeap(year int64) bool

// NextDay advance Time structure to the next day. func NextDay(t *time.Time)

// PrevDay adjust Time structure one day behind. func PrevDay(t *time.Time)

// NextMonth advance Time structure one month ahead. func NextMonth(t *time.Time)

// PrevMonth adjust Time structure one month behind. func PrevMonth(t *time.Time)

// Weekday returns day of week number. // // Use Sakamoto's method (valid for dates in Oct 15, 1582 - Dec 31, 9999) // (see http://en.wikipedia.org/wiki/Calculating_the_day_of_the_week ) // // Args: // year (e.g., 1988) // month (1-12) // day of the month (1-31) // Returns: // 0 = Sunday, 1 = Monday, ... // func Weekday(year, month, day int) int

FAQs

Package last updated on 10 Jan 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc