HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file time.TimeUnix by barry
expand copy to clipboardexpand
uses time.DateTime

/*
{ "description" : "Utility interface to convert between DateTime instances and the Unix time format."}
*/

interface TimeUnix {
	
	/* { "@description" : "Convert a DateTime instance to a Unix time value (measured in seconds)."} */
	int toUnixTime(DateTime dt)
	
	/* { "@description" : "Convert from a Unix-format time value (measured in seconds) to a DateTime instance."} */
	DateTime fromUnixTime(int utime)
	
	}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n time.TimeUnix -m "reason for update" -u yourUsername
Version 2 (this version) by barry
Notes for this version: Updates to documentation strings.
Version 1 by barry