Skip to content

Conversation

@copybara-service
Copy link
Contributor

Add getDays function for Duration.

This change introduces a new standard function getDays that can be called on a Duration value to extract the number of full days. The implementation uses java.time.Duration.toDays() when canonical type evaluation is enabled, and a custom utility function otherwise.

@copybara-service copybara-service bot force-pushed the test_855230705 branch 2 times, most recently from 5c4d5d7 to 10967b4 Compare January 12, 2026 16:15
This change introduces a new standard function `getDays` that can be called on a `Duration` value to extract the number of full days. The implementation uses `java.time.Duration.toDays()` when canonical type evaluation is enabled, and a custom utility function otherwise.

PiperOrigin-RevId: 855230705
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants