MCPcopy
hub / github.com/gogf/gf / Now

Function Now

os/gtime/gtime_time.go:91–95  ·  view source on GitHub ↗

Now creates and returns a time object of now.

()

Source from the content-addressed store, hash-verified

89
90// Now creates and returns a time object of now.
91func Now() *Time {
92 return &Time{
93 wrapper{time.Now()},
94 }
95}
96
97// NewFromTime creates and returns a Time object with given time.Time object.
98func NewFromTime(t time.Time) *Time {

Callers 15

RegisterMethod · 0.92
getServicesMethod · 0.92
Test_DB_InsertFunction · 0.92
Test_DB_BatchInsertFunction · 0.92
Test_DB_SaveFunction · 0.92
Test_DB_PrefixFunction · 0.92
Test_DB_UpdateCounterFunction · 0.92
Test_Model_InsertFunction · 0.92

Calls

no outgoing calls

Tested by 15

Test_DB_InsertFunction · 0.74
Test_DB_BatchInsertFunction · 0.74
Test_DB_SaveFunction · 0.74
Test_DB_PrefixFunction · 0.74
Test_DB_UpdateCounterFunction · 0.74
Test_Model_InsertFunction · 0.74
Test_Model_BatchFunction · 0.74
Test_Model_AllAndCountFunction · 0.74