[25] Results

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 timezone offset from date or timestamp

golang offset time-zone date-to-string

Problem :

You have a date or time stamp and you want get the time zone offset from the date.

.... read more


Golang : How to get year, month and day?

golang year-month-day time-now-date

Problem :

You want to extract the year, month and day from today's date. How to do that?

Solution :

.... read more


Golang : Find age or leap age from date of birth example

golang date-of-birth month-to-integer leap-year-age

Alright, here is a simple tutorial on how to calculate a person's age by a given date of birth string.….... read more


Golang : Convert date format and separator yyyy-mm-dd to dd-mm-yyyy

golang date-format yyyy-mm-dd dd-mm-yyyy british-date-format

Feeling bored today and just want to play around with date formats. It seems that Golang's time package.... 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


Golang : Loop each day of the current month example

golang loop-date number-of-days-in-month

Problem:

You need to get the current month, find out the number of days in the month programmatically and loop….... read more


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


Advertisement

Advertisement