renamed libhdate.go to funcs.go, moved constants to a new file, and types to a
new file