PalmOS software & tools


software  DateDiff  ·  NYsubway
tools  pzip.c  ·  ISOWeekNum.c

DateDiff 3.1       Info | Screenshots | Requirements | Download Changelog

Info:

Ever wonder how long you've been alive, down to the day? What about the precise amount of time since you met (or married) that special someone? How long 'till your next anniversary?

DateDiff is a simple program that allows the user to find out how much time has elapsed between any two dates, in terms of days, months and years as well as the total number of days.

Multiple date combinations ("events") can be stored, modified or deleted. The list of events is backed up with a HotSync, so that, if necessary, they can be restored after a hard reset.

DateDiff is freeware, distributed under the GNU General Public License.

Screenshots:

event screen (default)
event screen (weeks mode)
list screen (weeks mode)
list screen (default)
date format dialog
list screen w. new date format

Requirements:

Download:

Changelog:


NYsubway       Info | Screenshots | Requirements | Download

Info:

I can hardly claim authorship of this one: the map was created by Michael Adler of nycsubway.org and converted to a Palm-readable format with a freeware tool called Pilot install (available at pinstall.envicon.com).

(last updated, 2002.04.11)

Screenshots:

midtown

Requirements:

Download:


pzip.c

A simple text compression routine, based around a few of the functions from txt2pdbdoc. Allowing for compressed text to be included in a Palm app and uncompressed on demand, it achieves about 50% compression on average: not fantastic, but it's pretty quick, and it can save a few Kb, even in small apps (DateDiff being one example: about 3 Kb saved from the two help files [NB: this is the case with version 3.1]). Adds less than 400 bytes to the code.

Compile pzip.c on any Unix-like system (even works under Cygwin) and run with a filename as the only argument. A compressed version of that file will be created, with ".pz" tacked on the end of the filename.

I use a PilRC *.rcp file to get the "pzip" resource into the app, then from within your PalmOS code, all you really need to do is:

	Char *str;
	str = Punzip(PzippedStringResourceID);
	// do something with str
	MemPtrFree(str);
	


ISOWeekNum.c

A PalmOS algorithm to calculate the week number of a particular date, based on the ISO 8601 standard. More information on the ISO standard can be found at http://www.cl.cam.ac.uk/~mgk25/iso-time.html. A quick look at the source is also available.