获取purescript中的当前时间/日期(Get current time/date in purescript)
这在我看来是一个奇怪的问题,但我已经完成了purescript-datetime和purescript-js-date ,我找不到获取当前DateTime 。 是否有一些隐藏的库函数或者我必须通过FFI?
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?
最满意答案
您可以使用purescript-now的now或nowDateTime函数。
You can use the now or nowDateTime functions from purescript-now.
更多推荐
发布评论