aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/ramsey/uuid/src/DegradedUuid.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2020-01-14 13:34:56 -0800
committerzotlabs <mike@macgirvin.com>2020-01-14 13:34:56 -0800
commit293d411efb28b8f20a0208e3c52883e9fbb8cea7 (patch)
treea8b0af66015815d56342daf8301ab5ae095eda0a /vendor/ramsey/uuid/src/DegradedUuid.php
parent2a287e6def5ab54037222c963ab0875faf62fc1a (diff)
parentd96f4340e80207a29a5c1c49cae8c25e3934d5ae (diff)
downloadvolse-hubzilla-293d411efb28b8f20a0208e3c52883e9fbb8cea7.tar.gz
volse-hubzilla-293d411efb28b8f20a0208e3c52883e9fbb8cea7.tar.bz2
volse-hubzilla-293d411efb28b8f20a0208e3c52883e9fbb8cea7.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'vendor/ramsey/uuid/src/DegradedUuid.php')
-rw-r--r--vendor/ramsey/uuid/src/DegradedUuid.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/ramsey/uuid/src/DegradedUuid.php b/vendor/ramsey/uuid/src/DegradedUuid.php
index bcf0be800..26697615c 100644
--- a/vendor/ramsey/uuid/src/DegradedUuid.php
+++ b/vendor/ramsey/uuid/src/DegradedUuid.php
@@ -14,6 +14,8 @@
namespace Ramsey\Uuid;
+use DateTime;
+use Moontoast\Math\BigNumber;
use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
use Ramsey\Uuid\Exception\UnsupportedOperationException;
@@ -35,13 +37,13 @@ class DegradedUuid extends Uuid
$time = $this->converter->fromHex($this->getTimestampHex());
- $ts = new \Moontoast\Math\BigNumber($time, 20);
+ $ts = new BigNumber($time, 20);
$ts->subtract('122192928000000000');
$ts->divide('10000000.0');
$ts->round();
$unixTime = $ts->getValue();
- return new \DateTime("@{$unixTime}");
+ return new DateTime("@{$unixTime}");
}
/**