[60] Results

Golang : Get future or past hours, minutes or seconds

golang get-time-past-future calculate-hour-minute-second

Problem:

You need to calculate future or past minutes, hours or seconds from the current time. Ability to calculate future….... 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 : 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 : Get current time

golang get-current-time

Problem :

Need to get current time stamp in Go and display in string.

Solution :

Use the time.Local() and….... read more


Golang : Calculate future date with time.Add() function

golang time-different future-date

Problem :

You need to calculate future dates by number of days. This can be use in calculating expiring dates….... read more


Golang : Measure http.Get() execution time

golang measure-get-time http-get

There are times where you need to measure how long a http.Get() response time takes for debugging reason or network….... read more


Golang : Get current, epoch time and display by year, month and day

golang get-current-time now epoch-time unix-time

Problem :

You need to get current and Epoch(Unix) time and display the time by year, month and day.

Solution….... read more


Golang : Get month name from date example

golangget-year-month-day time-now-date

Problem:

You have a date and you want to get the month name from the date. For example,10/10/2017 should give….... read more


Advertisement