Skip to content

Clarilab/claridate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

claridate provides several functions regarding the parsing of date and/or time.

Getting Started

To start using this package, just import it and use the Functions like so:

package main

import (
    "fmt"

    "github.com/Clarilab/claridate"
)

func main() {
    dateFormat, err := claridate.DetermineDateFormat("2006-08")
    if err != nil {
        panic(err)
    }

    fmt.Println(dateFormat) // prints "YYYY-MM"
}

Test

To run the tests, run make test in the project directory.