8000 GitHub - benridley/gotime: A go library for defining periods of time and checking validating points in time against those periods
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A go library for defining periods of time and checking validating points in time against those periods

Notifications You must be signed in to change notification settings

benridley/gotime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotime

A go library for defining windows of time and validating points in time against those periods.

How to Use

The main struct, the TimeInterval, is designed to be instantiated by a yaml configuration file:

  # Last week, excluding Saturday, of the first quarter of the year during business hours from 2020 to 2025 and 2030-2035
- weekdays: ['monday:friday', 'sunday']
  months: ['january:march']
  days_of_month: ['-7:-1']
  years: ['2020:2025', '2030:2035']
  times:
    - start_time: '09:00'
      end_time: '17:00'

About

A go library for defining periods of time and checking validating points in time against those periods

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0