Example
gluon.today()
With the clock pinned to 2026-10-01T09:00:00Z this returns 2026-10-01T00:00:00Z, midnight UTC as a timestamp.
Types
The type checker knows it as gluon.today() -> date. Call it in any GOL field that takes CEL: a Function, a derived property, a constraint or a policy condition.
Limits
The type checker treats the result as a date, while the runtime returns a timestamp at midnight. Test every comparison you build on it. A Test case pins the clock with context.now.
Guard optional inputs with has(). In a policy, an evaluation error denies. An expression that does not parse, runs past 2,000 characters or nests too deeply is GLN-E201, and one whose result has the wrong type is GLN-E202.
See Function, Test and the language guide.
