New assembly file version (with year)
This commit is contained in:
parent
188f5e8328
commit
c354f0a8ba
|
|
@ -12,8 +12,8 @@ functions
|
||||||
// If the computer date is set before the start date, then the version is 0
|
// If the computer date is set before the start date, then the version is 0
|
||||||
if (now >= start)
|
if (now >= start)
|
||||||
{
|
{
|
||||||
var monthsSinceStart = (now.Year - start.Year) * 12 + now.Month;
|
var yearsSinceStart = (now.Year - start.Year) + 1;
|
||||||
version = monthsSinceStart.ToString("000") + now.Day.ToString("00");
|
version = yearsSinceStart + now.ToString("MMdd");
|
||||||
}
|
}
|
||||||
|
|
||||||
return version;
|
return version;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue