Now returns a standardized timezone used for database resources.
()
| 4 | |
| 5 | // Now returns a standardized timezone used for database resources. |
| 6 | func Now() time.Time { |
| 7 | return Time(time.Now().UTC()) |
| 8 | } |
| 9 | |
| 10 | // Time returns a time compatible with Postgres. Postgres only stores dates with |
| 11 | // microsecond precision. |