Sha256: 90343156ada46c01becb842e1b172634997c46fe9d19f08d6924e15582e204af
Contents?: true
Size: 244 Bytes
Versions: 1
Compression:
Stored size: 244 Bytes
Contents
# frozen_string_literal: true module Dial module Util class << self def uuid_v7_timestamp uuid high_bits_hex = uuid.split("-").first(2).join[0, 12].to_i 16 Time.at high_bits_hex / 1000.0 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dial-0.1.4 | lib/dial/util.rb |