Time Constants
All time constants are in milliseconds.SECOND
MINUTE
60000
Example:
HOUR
3600000
Example:
DAY
86400000
Example:
WEEK
604800000
Example:
Usage in Rate Limits
These constants make rate limit configurations more readable and maintainable:Combining Constants
You can combine or multiply constants for custom periods:All time constants are in milliseconds to match JavaScript’s
Date.now() and Convex’s time units.