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 modules, 24 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址