© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Setting Default Timestamp Value with `Clock.currentTimeMillis` in `S.optional` - Effect Community
EC
Effect Community
•
2y ago
•
9 replies
adrian_g
Setting Default Timestamp Value with `Clock.currentTimeMillis` in `S.optional`
Is it possible to effectully produce a default value for
S.optional
S.optional
? I
'd like to use
Clock.currentTimeMillis
Clock.currentTimeMillis
to produce default value for a
timestamp
timestamp
. Thanks
!
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Maintaining Optional Type with Default Value in TypeScript
EC
Effect Community / schema
3y ago
Making onNoneEncoding optional with a default value of null
EC
Effect Community / schema
2y ago
Alternative for setting defaults with S.optional in newer versions
EC
Effect Community / schema
17mo ago
Setting Default Value for Optional Field based on Required Fields in TypeScript Schema Class
EC
Effect Community / schema
2y ago