Goto main content

uuid_time

Return the time when a uuid was created.

UUID_TIME

NAME

uuid_time - return the time in second of a uuid

SYNOPSIS

uuid(uuid)

DESCRIPTION

The uuid_time function extracts the time at which the supplied time-based UUID uu was created.  Note that the UUID creation time is only encoded within certain types of UUIDs (create with uuid(time:true) 

PARAMETERS

String
string to put in time in second

RETURN

Number of seconds.

EXAMPLES

t = uuid(time:true); 

t; " ";

sec = uuid_time(t);

datetime(date:sec);


Result: 'bb18464e-ddf8-11e7-ad77-00065b397ecd 2017-12-10 17:23:21'

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com available in version 5.97

Edit

© 2024 extenso Inc. All rights reserved.