Skip to content

Commit de2a5fe

Browse files
authored
Merge pull request #2 from Take111/feature/make_to_public
make entity to public
2 parents 76dd257 + 0759a97 commit de2a5fe

1 file changed

Lines changed: 30 additions & 15 deletions

File tree

Sources/WorldTimeAPIiOS/Response/CurrentTimeWithTimeZone.swift

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,36 @@
88
import Foundation
99

1010
public struct CurrentTimeWithTimeZone: Decodable {
11-
let abbreviation: String
12-
let clientIP: String
13-
let datetime: String
14-
let dayOfWeek: Int
15-
let dayOfYear: Int
16-
let dst: Bool
17-
let dstFrom: String?
18-
let dstOffset: Int
19-
let dstUntil: String?
20-
let rawOffset: Int
21-
let timezone: String
22-
let unixtime: Int
23-
let utcDatetime: String
24-
let utcOffset: String
25-
let weekNumber: Int
11+
/// the abbreviated name of the timezone
12+
public let abbreviation: String
13+
/// the IP of the client making the request
14+
public let clientIP: String
15+
/// an ISO8601-valid string representing the current, local date/time
16+
public let datetime: String
17+
/// current day number of the week, where sunday is 0
18+
public let dayOfWeek: Int
19+
/// ordinal date of the current year
20+
public let dayOfYear: Int
21+
/// flag indicating whether the local time is in daylight savings
22+
public let dst: Bool
23+
/// an ISO8601-valid string representing the datetime when daylight savings started for this timezone
24+
public let dstFrom: String?
25+
/// the difference in seconds between the current local time and daylight saving time for the location
26+
public let dstOffset: Int
27+
/// an ISO8601-valid string representing the datetime when daylight savings will end for this timezone
28+
public let dstUntil: String?
29+
/// the difference in seconds between the current local time and the time in UTC, excluding any daylight saving difference (see dst_offset)
30+
public let rawOffset: Int
31+
/// timezone in Area/Location or Area/Location/Region format
32+
public let timezone: String
33+
/// number of seconds since the Epoch
34+
public let unixtime: Int
35+
/// an ISO8601-valid string representing the current date/time in UTC
36+
public let utcDatetime: String
37+
/// an ISO8601-valid string representing the offset from UTC
38+
public let utcOffset: String
39+
/// the current week number
40+
public let weekNumber: Int
2641

2742
enum CodingKeys: String, CodingKey {
2843
case abbreviation

0 commit comments

Comments
 (0)