50 lines
1.3 KiB
ActionScript
Executable File
50 lines
1.3 KiB
ActionScript
Executable File
/*
|
|
Copyright (c) 2009 Yahoo! Inc. All rights reserved.
|
|
The copyrights embodied in the content of this file are licensed under the BSD (revised) open source license
|
|
*/
|
|
package com.yahoo.astra.utils
|
|
{
|
|
/**
|
|
* A collection of constants for date and time units.
|
|
*
|
|
* @author Josh Tynjala
|
|
*/
|
|
public class TimeUnit
|
|
{
|
|
/**
|
|
* A constant representing the year unit in date and time values.
|
|
*/
|
|
public static const YEAR:String = "year";
|
|
|
|
/**
|
|
* A constant representing the month unit in date and time values.
|
|
*/
|
|
public static const MONTH:String = "month";
|
|
|
|
/**
|
|
* A constant representing the day unit in date and time values.
|
|
*/
|
|
public static const DAY:String = "day";
|
|
|
|
/**
|
|
* A constant representing the hours unit in date and time values.
|
|
*/
|
|
public static const HOURS:String = "hours";
|
|
|
|
/**
|
|
* A constant representing the minutes unit in date and time values.
|
|
*/
|
|
public static const MINUTES:String = "minutes";
|
|
|
|
/**
|
|
* A constant representing the seconds unit in date and time values.
|
|
*/
|
|
public static const SECONDS:String = "seconds";
|
|
|
|
/**
|
|
* A constant representing the milliseconds unit in date and time values.
|
|
*/
|
|
public static const MILLISECONDS:String = "milliseconds";
|
|
}
|
|
}
|