Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get current time/date in purescript

Tags:

purescript

This seems to me a weird question, but I have gone through the purescript-datetime and purescript-js-date and I just cannot find a way to get current DateTime. Is there some hidden library function or do I have to go through FFI?

like image 584
ondra Avatar asked Apr 10 '17 14:04

ondra


1 Answers

You can use the now or nowDateTime functions from purescript-now.

like image 95
Phil Freeman Avatar answered Oct 17 '22 02:10

Phil Freeman