shithub: mc

ref: e4505dbcbb4d305d789d41909a1f606144eb5652
dir: /lib/date/test/parse-test.myr/

View raw version
use std
use date

const main = {
	var buf : byte[1024]
	var n

	/*Fri 29 Aug 2014 07:47:43 PM UTC*/
	match date.parsefmt("%Y-%m-%d %z", "1932-10-23 +0500")
	| `std.Some d:
		n = date.bfmt(buf[:], d, true)
		std.put("%s\n", buf[:n])
	;;
}