unixday

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 2 Imported by: 0

README

unixday Build Status

Go package + command line utility for showing todays date as a UNIX day. Or for converting from a UNIX day to a date.

Example use

$ ud
16457
$ ud -date 16457
22.01.2015

General info

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UNIXDay

type UNIXDay int64

UNIXDay represents the number of days since 1970

func At

func At(t time.Time) UNIXDay

At returns the UNIXDay at the given point in time

func Now

func Now() UNIXDay

Now returns the current UNIXDay

func (UNIXDay) Date

func (ud UNIXDay) Date() string

Date returns the current UNIXDay as a formatted date string

func (UNIXDay) String

func (ud UNIXDay) String() string

String returns the current UNIXDay as a number, in the form of a string

func (UNIXDay) Time

func (ud UNIXDay) Time() time.Time

Time returns the current UNIXDay as a time.Time

Directories

Path Synopsis
cmd
ud command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL