Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move time date and timezone helpers to TimeTestHelper #37

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

mannylopez
Copy link
Owner

Created TimeTestHelper and moved the following methods to that file + updated call sites

static func formatDate(
    year: [Int](doc://com.apple.documentation/pcwea?language=swift&usr=true),
    month: [Int](doc://com.apple.documentation/pcwea?language=swift&usr=true),
    day: [Int](doc://com.apple.documentation/pcwea?language=swift&usr=true),
    hour: [Int](doc://com.apple.documentation/pcwea?language=swift&usr=true) = 00,
    minute: [Int](doc://com.apple.documentation/pcwea?language=swift&usr=true) = 00,
    second: [Int](doc://com.apple.documentation/pcwea?language=swift&usr=true) = 00,
    timeZone: [TimeZone](doc://com.apple.documentation/qd7hjj?language=swift&usr=true) = TimeZoneOption.createTimeZone(timeZone: .utc)
) -> [Date](doc://com.apple.documentation/17zv1zw?language=swift&usr=true)


static func createTimeZone(timeZone: TimeZoneOption) -> [TimeZone](doc://com.apple.documentation/qd7hjj?language=swift&usr=true)

@mannylopez mannylopez merged commit 64ccd1a into main Jul 23, 2024
@mannylopez mannylopez deleted the manny-lopez--timeTestHelper branch July 23, 2024 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant