Difference between DateTime and Timespan?
I can do anything I need with DateTime, is Timespan some kind of a shortcut. I know it returns the same thing as Date. Anyone got an explanation?
asked Jan 16 '18 at 05:31 PM in Blueprint Scripting
Hey there, my guess is that DateTime is used to hold full dates and Timespan is used to hold a chunk of time. From a DateTime you can only add TimeSpans and not DateTimes. So i would say it's better to use Timespans if you want to add or subtract a chunk of time from a specific date using DateTime.
answered Jan 16 '18 at 05:44 PM
FDateTime stores a date and time, i.e. a point in time on a calendar and wall clock.
FTimespan stores a duration.
The difference between two FDateTime values is an FTimespan.
answered Jan 17 '18 at 03:55 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here