ConversionUtil

Kind of class:class
Inherits from:none
Version:02/17/07
Author:Aaron Clinger, David Bliss
Classpath:org.casaframework.util.ConversionUtil
File last modified:Sunday, 19 August 2007, 13:43:36

Class methods

bitsToBytes

static function bitsToBytes (bits:Number) : Number
Converts bits to bytes.
Parameters:
bits:
The number of bits.
Returns:
Returns the number of bytes.

bitsToKilobits

static function bitsToKilobits (bits:Number) : Number
Converts bits to kilobits.
Parameters:
bits:
The number of bits.
Returns:
Returns the number of kilobits.

bitsToKilobytes

static function bitsToKilobytes (bits:Number) : Number
Converts bits to kilobytes.
Parameters:
bits:
The number of bits.
Returns:
Returns the number of kilobits.

bytesToBits

static function bytesToBits (bytes:Number) : Number
Converts bytes to bits.
Parameters:
bytes:
The number of bytes.
Returns:
Returns the number of bits.

bytesToKilobits

static function bytesToKilobits (bytes:Number) : Number
Converts bytes to kilobits.
Parameters:
bytes:
The number of bytes.
Returns:
Returns the number of kilobits.

bytesToKilobytes

static function bytesToKilobytes (bytes:Number) : Number
Converts bytes to kilobytes.
Parameters:
bytes:
The number of bytes.
Returns:
Returns the number of kilobytes.

daysToHours

static function daysToHours (days:Number) : Number
Converts days to hours.
Parameters:
days:
The number of days.
Returns:
Returns the number of hours.

daysToMilliseconds

static function daysToMilliseconds (days:Number) : Number
Converts days to milliseconds.
Parameters:
days:
The number of days.
Returns:
Returns the number of milliseconds.

daysToMinutes

static function daysToMinutes (days:Number) : Number
Converts days to minutes.
Parameters:
days:
The number of days.
Returns:
Returns the number of minutes.

daysToSeconds

static function daysToSeconds (days:Number) : Number
Converts days to seconds.
Parameters:
days:
The number of days.
Returns:
Returns the number of seconds.

degreesToRadians

static function degreesToRadians (degrees:Number) : Number
Converts degrees to radians.
Parameters:
degrees:
The number of degrees.
Returns:
Returns the number of radians.

hoursToDays

static function hoursToDays (hours:Number) : Number
Converts hours to days.
Parameters:
hours:
The number of hours.
Returns:
Returns the number of days.

hoursToMilliseconds

static function hoursToMilliseconds (hours:Number) : Number
Converts hours to milliseconds.
Parameters:
hours:
The number of hours.
Returns:
Returns the number of milliseconds.

hoursToMinutes

static function hoursToMinutes (hours:Number) : Number
Converts hours to minutes.
Parameters:
hours:
The number of hours.
Returns:
Returns the number of minutes.

hoursToSeconds

static function hoursToSeconds (hours:Number) : Number
Converts hours to seconds.
Parameters:
hours:
The number of hours.
Returns:
Returns the number of seconds.

kilobitsToBits

static function kilobitsToBits (kilobits:Number) : Number
Converts kilobits to bits.
Parameters:
kilobits:
The number of kilobits.
Returns:
Returns the number of bits.

kilobitsToBytes

static function kilobitsToBytes (kilobits:Number) : Number
Converts kilobits to bytes.
Parameters:
kilobits:
The number of kilobits.
Returns:
Returns the number of bytes.

kilobitsToKilobytes

static function kilobitsToKilobytes (kilobits:Number) : Number
Converts kilobits to kilobytes.
Parameters:
kilobytes:
The number of kilobits.
Returns:
Returns the number of kilobytes.

kilobytesToBits

static function kilobytesToBits (kilobytes:Number) : Number
Converts kilobytes to bits.
Parameters:
kilobytes:
The number of kilobytes.
Returns:
Returns the number of bits.

kilobytesToBytes

static function kilobytesToBytes (kilobytes:Number) : Number
Converts kilobytes to bytes.
Parameters:
kilobytes:
The number of kilobytes.
Returns:
Returns the number of bytes.

kilobytesToKilobits

static function kilobytesToKilobits (kilobytes:Number) : Number
Converts kilobytes to kilobits.
Parameters:
kilobytes:
The number of kilobytes.
Returns:
Returns the number of kilobits.

millisecondsToDays

static function millisecondsToDays (milliseconds:Number) : Number
Converts milliseconds to days.
Parameters:
milliseconds:
The number of milliseconds.
Returns:
Returns the number of days.

millisecondsToHours

static function millisecondsToHours (milliseconds:Number) : Number
Converts milliseconds to hours.
Parameters:
milliseconds:
The number of milliseconds.
Returns:
Returns the number of hours.

millisecondsToMinutes

static function millisecondsToMinutes (milliseconds:Number) : Number
Converts milliseconds to minutes.
Parameters:
milliseconds:
The number of milliseconds.
Returns:
Returns the number of minutes.

millisecondsToSeconds

static function millisecondsToSeconds (milliseconds:Number) : Number
Converts milliseconds to seconds.
Parameters:
milliseconds:
The number of milliseconds.
Returns:
Returns the number of seconds.

minutesToDays

static function minutesToDays (minutes:Number) : Number
Converts minutes to days.
Parameters:
minutes:
The number of minutes.
Returns:
Returns the number of days.

minutesToHours

static function minutesToHours (minutes:Number) : Number
Converts minutes to hours.
Parameters:
minutes:
The number of minutes.
Returns:
Returns the number of hours.

minutesToMilliseconds

static function minutesToMilliseconds (minutes:Number) : Number
Converts minutes to milliseconds.
Parameters:
minutes:
The number of minutes.
Returns:
Returns the number of milliseconds.

minutesToSeconds

static function minutesToSeconds (minutes:Number) : Number
Converts minutes to seconds.
Parameters:
minutes:
The number of minutes.
Returns:
Returns the number of seconds.

radiansToDegrees

static function radiansToDegrees (radians:Number) : Number
Converts radians to degrees.
Parameters:
radians:
The number of radians.
Returns:
Returns the number of degrees.

secondsToDays

static function secondsToDays (seconds:Number) : Number
Converts seconds to days.
Parameters:
seconds:
The number of seconds.
Returns:
Returns the number of days.

secondsToHours

static function secondsToHours (seconds:Number) : Number
Converts seconds to hours.
Parameters:
seconds:
The number of seconds.
Returns:
Returns the number of hours.

secondsToMilliseconds

static function secondsToMilliseconds (seconds:Number) : Number
Converts seconds to milliseconds.
Parameters:
seconds:
The number of seconds.
Returns:
Returns the number of milliseconds.

secondsToMinutes

static function secondsToMinutes (seconds:Number) : Number
Converts seconds to minutes.
Parameters:
seconds:
The number of seconds.
Returns:
Returns the number of minutes.