Movatterモバイル変換


[0]ホーム

URL:


dbtime

package
v2.26.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2025 License:AGPL-3.0Imports:1Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcNow

func Now()time.Time

Now returns a standardized timezone used for database resources.

funcStartOfDayadded inv2.19.0

func StartOfDay(ttime.Time)time.Time

StartOfDay returns the first timestamp of the day of the input timestamp in its location.

funcTime

func Time(ttime.Time)time.Time

Time returns a time compatible with Postgres. Postgres only stores dates withmicrosecond precision.FIXME(dannyk): refactor all calls to Time() to expect the input time to be modified to UTC; there are currently a

few calls whose behavior would change subtly.See https://github.com/coder/coder/pull/14274#discussion_r1718427461

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp