Skip to content

Convert password(at:) to take a Date instead of a TimeInterval#124

Merged
mattrubin merged 2 commits into
developfrom
date
Feb 5, 2017
Merged

Convert password(at:) to take a Date instead of a TimeInterval#124
mattrubin merged 2 commits into
developfrom
date

Conversation

@mattrubin

@mattrubin mattrubin commented Feb 5, 2017

Copy link
Copy Markdown
Owner

The user of OneTimePassword is more likely to already have a Date than they are to have a TimeInterval since the Unix epoch. An API using a Date is more clear, since using a TimeInterval requires knowledge of the base date from which the time interval is measured.

@codecov-io

codecov-io commented Feb 5, 2017

Copy link
Copy Markdown

Codecov Report

Merging #124 into develop will increase coverage by 0.01%.

@@             Coverage Diff             @@
##           develop     #124      +/-   ##
===========================================
+ Coverage    94.73%   94.75%   +0.01%     
===========================================
  Files            6        6              
  Lines          380      381       +1     
===========================================
+ Hits           360      361       +1     
  Misses          20       20
Impacted Files Coverage Δ
Sources/Generator.swift 100% <100%> (ø)
Sources/Token.swift 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 463ce81...19e0aad. Read the comment docs.

@mattrubin mattrubin merged commit 30711cb into develop Feb 5, 2017
@mattrubin mattrubin deleted the date branch February 5, 2017 03:55
@mattrubin mattrubin modified the milestone: 3.0 Feb 5, 2017
mattrubin added a commit that referenced this pull request Feb 7, 2017
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.

2 participants