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
|
Rev | Line | |
---|
[145] | 1 | package fasthttp
|
---|
| 2 |
|
---|
| 3 | import (
|
---|
| 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.
|
---|
| 11 | func CoarseTimeNow() time.Time {
|
---|
| 12 | return time.Now().Truncate(time.Second)
|
---|
| 13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.