Golang ProgramsGolang Programs

 
  • What is Go?  
    • Data Type
    • Integer Float String Boolean
    • Variables
    • Constants
    • Operators
    • Functions
    • Deferred Functions Calls
    • Panic and Recover
    • Arrays
    • Slices
    • Maps
    • Struct
    • Interface
    • Concurrency
    • Working with Channels
    • Logging Go Programs
  • Basic Programs
  • Advance Programs
  • Data Structure and Algorithms
  • Examples and Solutions
  • Home
  • What is Go?
    • Data Type
    • Integer Float String Boolean
    • Variables
    • Constants
    • Operators
    • Functions
    • Deferred Functions Calls
    • Panic and Recover
    • Arrays
    • Slices
    • Maps
    • Struct
    • Interface
    • Concurrency
    • Working with Channels
    • Logging Go Programs
  • Basic Programs
  • Advance Programs
  • Data Structure and Algorithms
  • Examples and Solutions

Golang basic examples of Date and Time manipulation functions

8/26/2017 9:41 PM



1) How to get the current date and time with timestamp in local and other timezones ?

2) Example to use Weekday and YearDay function

3) Golang Get current Date and Time in EST, UTC and MST?

4) Get Hours, Days, Minutes and Seconds difference between two dates [Future and Past]

5) Add N number of Year, Month, Day, Hour, Minute, Second, Millisecond, Microsecond and Nanosecond to current datetime

6) Subtract N number of Year, Month, Day, Hour, Minute, Second, Millisecond, Microsecond and Nanosecond to current datetime

7) Get current date and time in various format in golang

8) Get Year, Month, Day, Hour, Min and Second from current date and time.

9) Get Year, Month, Day, Hour, Min and Second from a specified date.

10) Convert specific UTC date time to PST, HST, MST and SGT

11) Various examples of Carbon date-time package in Golang

Posted in Golang tutorial for beginners and professionals provides deep knowledge of Go programming language. By

Golang Programs

Start GO
  • What is GO ?
  • Basic Programs
  • Advance Programs
Basic Go Topics
  • Data Type
  • Integer Float String Boolean
  • Variables
  • Constants
  • Operators
  • Functions
  • Deferred Functions Calls
  • Panic and Recover
Advance Go Topics
  • Arrays
  • Slices
  • Maps
  • Struct
  • Interface
  • Concurrency
  • Working with Channels
  • Logging Go Programs
Be In Touch
  • Contact Us
  • Quora
  • Reddit
Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

© 2016-18 Golang Programs. All Rights Reserved.

To top