Skip to main content
Version: 2.8.x(Latest)

Introduction

The general time management module encapsulates commonly used time/date-related methods and serves as a functional extension to the standard library time, providing more features. It supports custom date formatting syntax, which is inspired by the PHP date function syntax ( http://php.net/manual/zh/function.date.php ).

tip

The gtime time format syntax is very friendly for developers familiar with PHP.

Usage:

import "github.com/gogf/gf/v2/os/gtime"

API Documentation:

https://pkg.go.dev/github.com/gogf/gf/v2/os/gtime

Documents