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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -