[44] Results

Golang : Get local time and equivalent time in different time zone

golang time-zone load-location time-in-location

Problem :

You want to show your website visitor the local time(on your server) and the equivalent time in another….... read more


Golang : ISO8601 Duration Parser example

golang iso8601 duration-parser time

An example on how to parse ISO-8601 duration in string format and convert it to time.Duration type. However, this example….... read more


Golang : How to get time zone and load different time zone?

golang time-zone load-location

Problem :

You need to get current time zone and load different time zone. How to do that in Golang?

.... read more


Golang : How to profile or log time spend on execution?

golang profiling log execution-time

Being able to calculate how long it takes to execute a routine or function is crucial in optimizing a program(this….... read more


Golang : Execute function at intervals or after some delay

golang interval time delay tick

Problem :

You want to execute functions at intervals - such as polling a remote terminal every 30 seconds or….... read more


Golang : Display list of time zones with GMT

golang time time-zones windows linux darwin...

For this tutorial, we will learn how to grab the list of time zones found in Unix/Darwin(Mac)/Linux/Windows and display the….... 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


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


Advertisement