c# - DateTime.AddDays vs Calendar.AddDays -
what difference between datetime.adddays , calendar.adddays? datetime type calendar independent?
datetime.adddays converts days ticks , adds number of ticks date time. default implementation of calendar.adddays same. however, since virtual method can implemented in specific calendar in more complicated way, e.g. here: http://codeblog.jonskeet.uk/2010/12/01/the-joys-of-date-time-arithmetic/
Comments
Post a Comment