winft 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/winft/time.rb +2 -0
- data/lib/winft/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6feba9cc4a684b4fe964915b9cbaa8854a1fc5e52fbdee50d820d33af07aa043
|
|
4
|
+
data.tar.gz: c0cc40ab25e0d44c21906379aed015628456c96b881aa6bbaca689e2026d956e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f793c9b0659ce8cac346f3c9b367525bd4174304b5c2e432dd42b1272a12a585ab0ceeae4b347216f0c0722548c64e45e1071eb2f8c34e57df59da6d080d27ec
|
|
7
|
+
data.tar.gz: 53533b6c907eecce4c72abb0b4cd9c8a210a7090d55cf7e7103a00ae6c403a959337d3c28f364646c91aabee7a60c96450ce6dc013eb9aa407ad47044db264d1
|
data/lib/winft/time.rb
CHANGED
|
@@ -18,6 +18,8 @@ class Time
|
|
|
18
18
|
# since 12:00 midnight, January 1, 1601 A.D. (C.E.) Coordinated Universal Time (UTC).
|
|
19
19
|
# Windows uses a file time to record when an application creates, accesses, or writes to a file.
|
|
20
20
|
#
|
|
21
|
+
# @param timestamp [String | Integer] the number of 100-nanosecond intervals since Windows epoch.
|
|
22
|
+
# @return [Time] the corresponding local time.
|
|
21
23
|
def self.at_winft(timestamp)
|
|
22
24
|
at((timestamp.to_i + WINFT_OFFSET) / WINFT_MULTIPLIER)
|
|
23
25
|
end
|
data/lib/winft/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: winft
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jesse vonBergen
|
|
@@ -32,6 +32,8 @@ licenses:
|
|
|
32
32
|
- MIT
|
|
33
33
|
metadata:
|
|
34
34
|
rubygems_mfa_required: 'true'
|
|
35
|
+
homepage_uri: https://github.com/jvon1904/winft
|
|
36
|
+
source_code_uri: https://github.com/jvon1904/winft
|
|
35
37
|
post_install_message:
|
|
36
38
|
rdoc_options: []
|
|
37
39
|
require_paths:
|