Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentDateUTC ¶
GetCurrentDateUTC returns the current date in UTC, truncated to midnight (00:00:00). This matches PostgreSQL's DATE() function behavior for consistency.
Example:
- Input: 2025-10-17 14:23:45 UTC
- Output: 2025-10-17 00:00:00 UTC
Usage: Use this for daily increment client-side date checking to ensure consistency with SQL DATE() function in BatchIncrementProgress queries.
func TruncateToDateUTC ¶
TruncateToDateUTC truncates the given time to midnight (00:00:00) in UTC. This matches PostgreSQL's DATE() function behavior for consistency.
Example:
- Input: 2025-10-17 14:23:45 UTC
- Output: 2025-10-17 00:00:00 UTC
Usage: Use this for comparing timestamps in bufferIncrementDaily with today's date.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.