【发布时间】:2014-06-03 05:44:45
【问题描述】:
我需要计算以下观察日期的平均值:
1/7/2010
15/7/2011
17/6/2012
3/7/2013
我怎样才能在 asp.net 或任何其他语言中做到这一点。如果有任何公式可以做到这一点。
【问题讨论】:
-
c#、c和vb.net?这不是问的好方法。顺便说一句,您尝试过任何东西吗? -
您希望得到什么结果?如何平均日期?
我需要计算以下观察日期的平均值:
1/7/2010
15/7/2011
17/6/2012
3/7/2013
我怎样才能在 asp.net 或任何其他语言中做到这一点。如果有任何公式可以做到这一点。
【问题讨论】:
c#、c 和 vb.net?这不是问的好方法。顺便说一句,您尝试过任何东西吗?
您需要将其转换为 Ticks(这会将其转换为 System.Int64),然后对它们进行平均。
【讨论】:
"The value of this property represents the number of 100-nanosecond intervals that have elapsed since 12:00:00 midnight, January 1, 0001, which represents DateTime.MinValue."