NeoCal Documentation

NeoCal for Palm OS User Guide

Durations

The duration conversion buttons either assign a duration unit (when the value in the x register is not already a duration) or convert a duration to another unit. The following buttons represent the duration conversions:

  • for years
  • for months
  • for weeks
  • for days
  • for hours
  • for minutes
  • for seconds
  • for frames

These conversions are determined by values stored in the following date conversion registers:

  • for the number of days per year (365.25)
  • for the number of days per month (30.4375)
  • for the number of days per week (7)
  • for the number of hours per day (24)
  • for the number of frames per second (30)

Just like the user registers, these registers are accessed using the and buttons. As a convenience, pressing one of these buttons while entering a number will cause any pending operation to be performed and then store that number in the register. Otherwise, pressing a date register button will recall it's value into the x register.

The button resets the date conversion registers to their default values, except for the register whose value is displayed as a reminder. It is important to clear the date registers before performing a series of date calculations to ensure consistent results. (The button also clears the date moment registers.)

The , or fractional part, button takes the fractional component of a duration and converts it to the next smaller unit.

For example,

  1. Press to reset the date registers.
  2. Press to enter 1 year.
  3. Press to convert to 12 months.
  4. Press to convert to 52.18 weeks.
  5. Press to convert to 365.25 days.
  6. Press to convert to 31,557,600 seconds.

This example shows duration converions based on a forty-hour work week,

  1. Press to reset the date registers.
  2. Press to store 8 in the hours per day register.
  3. Press to store 5 in the days per week register.
  4. Press to enter 134 hours.
  5. Press to convert to 3.35 weeks.
  6. Press to calculate 1.75 days (0.35 weeks).
  7. Press to calculate 6 hours (0.75 days). This shows that 130 hours is the same as 3 weeks, 1 day, and 6 hours.

Duration arithmetic can also be performed, for example:

  1. Press to reset the date registers.
  2. Press to add 1 hour and 30 minutes to generate the result of 1.5 hours.
  3. Press to add 1 day and 48 hours to generate the result of 3 days.
  4. Press yields the result of 1.29 weeks. Pressing shows this to be 1 week and 2 days.

In addition, there are three time conversion functions:

  • converts hours in decimal-fraction (H.h) format to minutes-second (H.MMSSs) format.
  • converts hours in minutes-second format to decimal-fraction format.
  • converts hours in minutes-second format to frames in decimal-fraction format.

For example,

  1. Press to convert 2.5 hours to 2 hours 30 minutes (2.30000).
  2. Press to convert 4 hours 23 minutes 48 seconds to 4.3967 hours.
  3. Press to convert 1 minute 30 seconds to 2,700 frames (assuming 30 fps).
  4. Press to convert 1,000 frames to 33.3 seconds (0.00333).