[34] Results

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 : Calculate time different

golang time-different

Problem :

You are looking to calculate the days between two dates. How to do that in Golang?

Solution :

.... 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 : Measure execution time for a function

golang measure-function-time execution-time footer

Ok, this is another way to measure execution time of a Golang function. This method uses defer and produce a….... read more


Golang : Timeout example

golang time-sleep time-out time-after delay

It is important for programs to know when to abort when connecting to external resources. One such example is the….... read more


Golang : Convert int(year) to time.Time type

golang integer-time convert

Problem :

You have integer value such as a year and you want to convert the integer to time.Time type.….... read more


Golang : Convert seconds to minutes and remainder seconds

golang seconds minutes time

Problem:

You have an input seconds in integer that you want to convert into minutes and remainder seconds. How to….... read more


Golang : calculate elapsed run time

golang elapsed-run-time

Calculating elapsed time can be useful for profiling or bench marking purpose. In this short tutorial, we will learn how….... read more


Advertisement

Advertisement