UniqueNum
Rate this function: Average rating: 3.0 (14 votes) Discuss this Custom Function
Joshua Beckett & Anton Anderson, The Wine Curators
http://www.personalwinecurator.com
Creates a unique, never to appear again number
Sample Input:
|
Sample Output:
|
Description:
Creates a unique 13 digit number based on year, day of year and time; result will always be 13 digits
EXAMPLE: may 23, 2010, 1:48 PM (and 3 seconds) = 2010142134803
Use to generate unique numbers (for IDs, identifiers, etc) within a solution without the need ever to check for duplicates, because there can only and ever be one instance of the year, day of year and exact time, including seconds.
[**NOTE: Intended for a single-user environment.
Filter ( Get ( CurrentTimestamp ) ; "0123456789" ) gives you almost the same result (e.g. 624201010157) but will not sort as well as UniqueNum (2010175130157); also, UniqueNum will always result in the exact same number of digits, which, for some purposes, is critical]
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:5 most recent comments | Show all 11 comments Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
CountWordOccurrences ( text ; searchWord ) |
| |
(Tue, Feb 07, 11:15am) |
| 2. |
indonesian_date(date) |
| |
(Mon, Feb 06, 7:14pm) |
| 3. |
phpArrayValue ( array ; key ; pos ) |
| |
(Fri, Jan 27, 1:49pm) |
| 4. |
solfm_timeToMinutes (theTime;roundSec) |
| |
(Fri, Jan 20, 6:26am) |
| 5. |
filterLines(filterField;filterValue;Result) |
| |
(Sat, Jan 14, 2:20pm) |
| 6. |
getMaxValue ( theList ) |
| |
(Thu, Jan 12, 1:06pm) |
| 7. |
MiddleWordsIncPunct ( text ; startingWord ; numberOfWords ) |
| |
(Sat, Jan 07, 9:16am) |
| 8. |
WindowInfo |
| |
(Fri, Jan 06, 12:39pm) |
 |
|
thanks for these notes. i have now included a note indicating this is intended for a single-user environment.
Joshua Beckett, Los Angeles
June 24, 2010 3:12pm