-
-
Save ztirom/3a4b2b6cb16689639357d775d0ef1001 to your computer and use it in GitHub Desktop.
DateTimeAddYear
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void DateTimeAddYear(Args _args) | |
{ | |
utcDateTime todayPlusOneYear, | |
// Get the actual UTCDateTime based on the current system | |
todaysDateTime = DateTimeUtil::utcNow(); | |
// Convert it to a string, just to show in on the info log | |
info(DateTimeUtil::toStr(todaysDateTime)); | |
// Now add a year | |
todayPlusOneYear = DateTimeUtil::addYears(todaysDateTime, 1); | |
// And Info it out again | |
info(DateTimeUtil::toStr(todayPlusOneYear)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment