source: code/trunk/vendor/github.com/valyala/fasthttp/coarseTime.go@ 145

Last change on this file since 145 was 145, checked in by Izuru Yakumo, 22 months ago

Updated the Makefile and vendored depedencies

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 314 bytes
Line 
1package fasthttp
2
3import (
4 "time"
5)
6
7// CoarseTimeNow returns the current time truncated to the nearest second.
8//
9// Deprecated: This is slower than calling time.Now() directly.
10// This is now time.Now().Truncate(time.Second) shortcut.
11func CoarseTimeNow() time.Time {
12 return time.Now().Truncate(time.Second)
13}
Note: See TracBrowser for help on using the repository browser.