Skip to main content
Software Engineering

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Draft saved
Draft discarded
Cancel
2
  • The simplest would be to represent the "dependent" part of the type as ticks (or days if you just want dates) since some epoch. It would then be up to the actual code to convert that into month day year, etc. Commented Sep 28, 2014 at 17:49
  • It will not help you much, but I cannot refrain to quote the FAQ of the OCaml calendar library. If you read it carefully, you will not be able any more to describe what a "valid date" is. ☺ Commented Sep 28, 2014 at 19:14

AltStyle によって変換されたページ (->オリジナル) /