Skip to content

Humanize for DateTime? defaulting to "never" #493

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

Merged
merged 4 commits into from
Dec 8, 2015
Merged

Humanize for DateTime? defaulting to "never" #493

merged 4 commits into from
Dec 8, 2015

Conversation

rdoubleui
Copy link
Contributor

In continuation to #479 I added the Humanize overload for DateTime?.

"Mono.Cecil": "0.9.6.1",
"xunit": "2.1.0",
"xunit.runner.visualstudio": "2.1.0"
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rdoubleui can you revert the changes to this file, they are irrelevant to the feature, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, of course.

@@ -1028,12 +1030,12 @@ namespace Humanizer.DateTimeHumanizeStrategy
}
public class PrecisionDateTimeHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy
{
public PrecisionDateTimeHumanizeStrategy(double precision = 0.75) { }
public PrecisionDateTimeHumanizeStrategy(double precision = 0,75) { }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is still no upstream version for this problem? :-( This line should be reverted, and 1038 also.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was fast :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. The PR is still pending.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes :) Just saw the trouble within diff in that moment.

@@ -34,6 +40,6 @@ public interface IFormatter
/// <param name="timeUnit"></param>
/// <param name="unit"></param>
/// <returns></returns>
string TimeSpanHumanize(TimeUnit timeUnit, int unit);
string TimeSpanHumanize(TimeUnit timeUnit, int unit);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this extra whitespace at the end of the line.

@mexx
Copy link
Collaborator

mexx commented Dec 7, 2015

LGTM
@onovotny what do you say?

@clairernovotny
Copy link
Member

👍

clairernovotny pushed a commit that referenced this pull request Dec 8, 2015
Humanize for DateTime? defaulting to "never"
@clairernovotny clairernovotny merged commit c165a94 into Humanizr:dev Dec 8, 2015
@hazzik
Copy link
Member

hazzik commented Dec 17, 2015

Need to localize for supported languages

@rdoubleui
Copy link
Contributor Author

@hazzik Yes, should this be another issue? How's this to be addressed?

@hazzik
Copy link
Member

hazzik commented Dec 17, 2015

@rdoubleui another issue. How we will handle it? - not sure yet.

@rdoubleui rdoubleui deleted the nullableDateTimeNever branch May 31, 2016 12:11
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.

4 participants