age

package module
v0.0.0-...-f0fa00c Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 1 Imported by: 24

README

Go-Age Build Status GoDoc

Go-Age is a little utility library for go that can calculate the age of an entity easily, and work around difficulties like leap years.

Documentation

Overview

Package age allows for easy calculation of the age of an entity, provided with the date of birth of that entity.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Age

func Age(birthDate time.Time) int

Age is shorthand for AgeAt(birthDate, time.Now()), and carries the same usage and limitations.

func AgeAt

func AgeAt(birthDate time.Time, now time.Time) int

AgeAt gets the age of an entity at a certain time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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