realworldocaml / examples

All the examples in Real World OCaml
The Unlicense
376 stars 81 forks source link

Fix Time.to_sec_string example #36

Open dbohdan opened 9 years ago

dbohdan commented 9 years ago

As of Core version 112.17.00 Time.to_sec_string requires a time zone.

dbohdan commented 8 years ago

@zzhjerry Thanks for pointing that out! I've replaced the patch.

douglarek commented 7 years ago
utop # Time.to_sec_string ~zone:Time.Zone.local Time.now();;
Error: This function has type Time.t -> zone:Time.Zone.t -> string It is applied to too many arguments; maybe you forgot a `;'.
dbohdan commented 1 year ago

Core has undergone changes since I submitted the PR. I have updated the PR for version 0.16.1 (the version numbering scheme has changed, too).