edu.cmu.hcii.calo.model.Task.SmartDueDateFormatter Class Reference

List of all members.

Detailed Description

Pseudointelligently formats a given date as a due date string based on its proximity to the current date and time.

Dates that are closer to the present are displayed in a form that conveys more precision than those further away, and the length of the textual representation is kept to a minimum wherever possible.

Author:
Brian Ellis


Static Public Member Functions

static String formatDate (Calendar date)
 Formats the given date as a String.

Static Private Attributes

Time constants
These constants express the given quantity of time in milliseconds.

static final long ONE_MINUTE = 1000 * 60
static final long ONE_HOUR = SmartDueDateFormatter.ONE_MINUTE * 60
static final long ONE_DAY = SmartDueDateFormatter.ONE_HOUR * 24
static final long ONE_WEEK = SmartDueDateFormatter.ONE_DAY * 7
static final long ONE_MONTH = (long)(SmartDueDateFormatter.ONE_DAY * 30.416667)
static final long ONE_YEAR = SmartDueDateFormatter.ONE_MONTH * 12


Member Function Documentation

static String edu.cmu.hcii.calo.model.Task.SmartDueDateFormatter.formatDate ( Calendar  date  )  [static]

Formats the given date as a String.

Parameters:
date the date to format


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:17 2007 for CALO by  doxygen 1.5.2