开发者

.NET Library to handle DateTime output nicer [duplicate]

开发者 https://www.devze.com 2023-04-12 12:28 出处:网络
This question already has answers here: Closed 11 years ago. 开发者_StackOverflow Possible Duplicate:
This question already has answers here: Closed 11 years ago. 开发者_StackOverflow

Possible Duplicate:

How do I calculate relative time?

I did stumble upon a nice library some time ago that gives you a nicer way when we're dealing with Dates like:

@DateTime.AddDays(-1) will show yesterday

@DateTime.Now will show Just now

WHat is the technical term of this and, did you guys know the nuget package of this library?


There's a jQuery plugin out there called timeago, which can also do what you're looking for: http://timeago.yarp.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消