mojotx / elapsedDays

Simple Go utility for calculating elapsed time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ElapsedDays

Simple Go utility for calculating elapsed time.

Note that it always calculates the elapsed time from the given time until now. Someday, I may extend this to calculate the elapsed time between two arbitrary points in time.

Installation

go get -v github.com/mojotx/elapsedDays

Example

$ elapsedDays 1969-09-02T18:00:00Z 1983-01-17T12:00:00Z
[1/2]: Time since 1969-09-02T18:00:00Z: 51 year(s), 9 month(s), 0 day(s), 22 hour(s), 14 minute(s), 54 second(s)
[2/2]: Time since 1983-01-17T12:00:00Z: 38 year(s), 4 month(s), 17 day(s), 5 hour(s), 14 minute(s), 54 second(s)

About

Simple Go utility for calculating elapsed time.

License:MIT License


Languages

Language:Go 100.0%