mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 11:59:24 +08:00

- Implement CURRENT_DATE returning YYYY-MM-DD format
- Add CURRENT_TIMESTAMP returning TimestampValue with microseconds
- Add CURRENT_TIME returning HH:MM:SS format
- Add NOW() as alias for CURRENT_TIMESTAMP
- Implement comprehensive EXTRACT function supporting:
- YEAR, MONTH, DAY, HOUR, MINUTE, SECOND
- QUARTER, WEEK, DOY (day of year), DOW (day of week)
- EPOCH (Unix timestamp)
- Support multiple input formats:
- TimestampValue (microseconds)
- String dates (multiple formats)
- Unix timestamps (int64 seconds)
- Comprehensive test suite with 15+ test cases covering:
- All date/time constants
- Extract from different value types
- Error handling for invalid inputs
- Timezone handling
All tests passing ✅