[54] Results

Golang : Get time.Duration in year, month, week or day

golang date-time-stampelapsed time-duration convert

Problem:

When using time.Until() or time.Since() functions, the time.Duration type have methods such as Hour(), Minutes(), Nanoseconds() and Seconds() to….... read more


Golang : Human readable time elapsed format such as 5 days ago

golang date-time-stamp future-past-date ago elapsed human-readable

Problem:

You need to convert a date time stamp such as this 02 March 1992 10:10:50 into a human readable….... read more


Golang : Date and Time formatting

golang date time timestamp

Our civilizations won't progress till this stage without proper understanding, parsing and organising our lives base on date and time.….... read more


Golang : Compare files modify date example

golang last-modify-date compare-files-date time-date

Problem:

You're writing a game that will create multiple save files and you want to compare the save game files….... read more


Golang : minus time with Time.Add() or Time.AddDate() functions to calculate past date

golang time-different future-date past-date

Let's go back into history for this tutorial's sake. Somehow you have invented a time traveling device powered by Golang….... read more


Golang : Parse date string and convert to dd-mm-yyyy format

golang dd-mm-yyyy date-time convert-string-date

A reader enquired on how to use Golang to convert date string such as "28th nov 2016" or "nov….... read more


Golang : Calculate elapsed years or months since a date

golang elapsed-time date year month

This is additional tutorial to our previous tutorial on how to calculate elasped run time. We will learn….... read more


Golang : Determine if time variables have same calendar day

golang time-equal compare-date

Problem :

You have two or more variables that are of type time.Time and you want to find out if….... read more


Advertisement