本文共 373 字,大约阅读时间需要 1 分钟。
protected DateTime GetFinish(DateTime start, int duration) { return start.AddDays(duration); } protected DateTime GetStart(DateTime finish, int duration) { return finish.AddDays(-duration); } protected int GetDuration(DateTime start, DateTime finish) { return (finish - start).Days; }
转载地址:http://eswno.baihongyu.com/