Skip to content

Commit

Permalink
Update Date+ZIP.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jebenjamin authored Aug 14, 2023
1 parent 4bfd85d commit b1ec3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ZIPFoundation/Date+ZIP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extension Date {
private extension Date {

enum Constants {
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
static let absoluteTimeIntervalSince1970 = kCFAbsoluteTimeIntervalSince1970
#else
static let absoluteTimeIntervalSince1970: Double = 978307200.0
Expand All @@ -77,7 +77,7 @@ private extension Date {
extension stat {

var lastAccessDate: Date {
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
return Date(timespec: st_atimespec)
#else
return Date(timespec: st_atim)
Expand Down

0 comments on commit b1ec3db

Please sign in to comment.