Skip to content

Commit

Permalink
Make properties of GregorianDay & GregorianTimeOfDay variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Mar 26, 2024
1 parent ff6d1c0 commit 31b24a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Sources/HandySwift/Types/GregorianDay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import Foundation
/// ```
public struct GregorianDay {
/// The year component of the date.
public let year: Int
public var year: Int
/// The month component of the date.
public let month: Int
public var month: Int
/// The day component of the date.
public let day: Int
public var day: Int

/// Returns an ISO 8601 formatted String representation of the date, e.g., `2024-02-24`.
public var iso8601Formatted: String {
Expand Down
8 changes: 4 additions & 4 deletions Sources/HandySwift/Types/GregorianTimeOfDay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import Foundation
/// ```
public struct GregorianTimeOfDay {
/// The number of days beyond the current day.
public let overflowingDays: Int
public var overflowingDays: Int
/// The hour component of the time.
public let hour: Int
public var hour: Int
/// The minute component of the time.
public let minute: Int
public var minute: Int
/// The second component of the time.
public let second: Int
public var second: Int

/// Initializes a `GregorianTimeOfDay` instance from a given date.
///
Expand Down

0 comments on commit 31b24a7

Please sign in to comment.