What's New at CFLib.org?

 
Nov 05, 2001
IsCreditCard
Returns TRUE if the string is a valid credit card number.
QuerySlice
Returns specific number of records starting with a specific row.
HSLtoHex
Convert an HSL (hue, saturation, luminance) triplet to a hex RGB triplet.
HexToHSL
Convert a hex RGB triplet to HSL (hue, saturation, luminance).
HexToRGB
Convert a hexadecimal color into a RGB color value.
GetTimeFromMinutes
Calculates time from minutes after midnight.
IsWebSafeColor
Returns true if the given color is a web safe hexadecimal color
DecToBin
Converts from decimal (base10) to binary (base2).
DecToOct
Converts from decimal (base10) to octal (base8).
DecToHex
Converts from decimal(base10) to hexadecimal (base16).
BinToDec
Converts from binary (base2) to decimal (base10).
HexToDec
Converts from hexadecimal (base16) to decimal (base10).
OctToBin
Converts from octal (base8) to decimal (base10).
GCD
Calculates the GCD (greatest common factor [divisor]) of two positive integers using the Euclidean Algorithm.
StructInvert
Takes a struct of simple values and returns the structure with the values and keys inverted.
CFParam
Function to duplicate the tag within CFSCRIPT.
ListCompare
Compares one list against another to find the elements in the first list that don't exist in the second list.
ListUnion
Combines two lists, automatically removing duplicate values and returning a sorted list.
RoundIt
RoundIt will round any number to a specific decimal point.
ComplexNum
Create a complex number as a structure.
ComplexNumAbs
Absolute value |z| of a complex number.
ComplexNumToString
Convert a stored complex number to a string in the form a + bi.
ComplexNumMultiply
Multiply two complex numbers.
ComplexNumAdd
Adds two complex numbers.
IsZipNL
Tests passed value to see if it is a properly formatted Dutch zip code.
Duration
Duration(dateObj1, dateObj2) Takes two date objects and returns a structure containing the duration of days, hours, and minutes.
DeleteClientVariables
This function deletes all client variables for a user.
IsSSN
Checks passed value to see if it is a properly formatted U.S. social security number.
IsZIPUK
Tests passed value to see if it is a properly formatted U.K. postcode (zip code).
IsPrimeNumber
Returns True if the specified number is a prime number.
ClosestWebSafeColor
Returns the closest web safe hexadecimal color for a given hexadecimal color.
Scientific
Takes a number and formats it into scientific notation. Takes number of significant digits as an optional second attribute.
Grayscale
Converts an HTML (hex) color code to gray. An optional second argument allows for conversion to a web-safe color in the same step.
IsPalindrome
Checks string to see if it is a palindrome.
IsURL
A quick way to test if a string is a URL.
Assert
Complex variable checking with a single function call.
DateConvertZ
Similar to DateConvert, but provides local2zone and zone2local conversion from one time zone to another.
MsToSec
Converts milliseconds to seconds.
DateTimeFormat
Calls both DateFormat and TimeFormat on a data object.
GetTimeStampFromHttpTimeString
Converts HttpTimeString into a timestamp string.
IsHexColor
Returns true if valid hexadecimal color.
GetOrdinal
Returns the 2 character english text ordinal for numbers.
RGBtoHex
Converts an RGB color value into a hexadecimal color value.
IsEven
Returns true if the number passed it is even, returns false if it is not.
IsOdd
Returns true if the number passed it is odd, returns false if it is not.
EvenOddColor
Returns different colors if the number passed to it is even or odd.
EmailAntiSpam
When given an email address this function will return the address in a format safe from email harvesters.
MakeSelectList
Creates a Select form item populated with given string items.
Sha1
Produces a 160-bit condensed representation (message digest) of message using the Secure Hash Algorithm (SHA-1).
Sha256
Produces a 256-bit condensed representation (message digest) of message using the Secure Hash Algorithm (SHA-256).
Acosh
Returns the inverse hyperbolic cosine of a value.
Acot
Returns the inverse cotangent of a value.
Acoth
Returns the inverse hyperbolic cotangent of a value.
Acsc
Returns the inverse cosecant of an angle.
Asec
Returns the inverse secant of an angle.
Asinh
Returns the inverse hyberbolic sine of a value.
Atanh
Returns the inverse hyberbolic tangent of a value.
Ripemd160
Produces a 160-bit condensed representation (message digest) of a message using the RIPEMD-160 algorithm.
MD5
Produces a 128-bit condensed representation (message digest) of a message using the RSA MD5 algorithm.
IsDateBetween
Returns True if the date provided in the first argument lies between the two dates in the second and third arguments.
TrueFalseFormat
Converts Boolean values to either True or False.
Wrap
Wraps a chunk of text at a given character count.
GetCurrentAge
This UDF uses a persons birthdate to output their current age in years.

Privacy | FAQ | Site Map | About | Guidelines | Contact | Advertising | What is ColdFusion?
House of Fusion | ColdFusion Jobs | Blog of Fusion | AHP Hosting