I agree with Christian in the sense that the readability gets compromised.

But I also think that a custom DateTime class should solve the problem
properly, since readability is not a general requirement.

My solution for that problem would be to create that extension and have
those nice methods on it, but not to modify the core, though.

Like Nikita well said, DateTime object is not an object we can simply dive
into modifying it without having some really bad side effects.


Daniel Ribeiro Gomes Pereira
Twitter <https://twitter.com/#!/drgomesp> |
Facebook<https://www.facebook.com/profile.php?id=100000407054469>
 | LinkedIn <http://www.linkedin.com/pub/daniel-ribeiro-gomes/21/414/39>
iPhone: +55 (48) 9111-0931



2012/12/10 Marco Pivetta <ocram...@gmail.com>

> It's just a matter of getting used to it IMO. I am not sure if you can
> simply modify its public properties, but if that's the case, that should
> handle your problem.
>
> Marco Pivetta
>
> http://twitter.com/Ocramius
>
> http://ocramius.github.com/
>

Reply via email to