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.
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 |
static String edu.cmu.hcii.calo.model.Task.SmartDueDateFormatter.formatDate | ( | Calendar | date | ) | [static] |
Formats the given date as a String.
date | the date to format |