Ocaml Small Recipes
get the current time
utop [4]: Time.now ();;
- : Time.t = 2014-05-24 20:12:53.256230-07:00
create a UUID
utop [0]: Uuid.create ();;
- : Uuid.t = 703783af-cffc-3a32-0386-cb38100dc0c9
utop [4]: Time.now ();;
- : Time.t = 2014-05-24 20:12:53.256230-07:00
utop [0]: Uuid.create ();;
- : Uuid.t = 703783af-cffc-3a32-0386-cb38100dc0c9