UKismetMathLibrary::TimespanMaxValue
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the maximum representable FTimespan, approximately 10,675,199 days. Use as a sentinel for 'infinity' durations.
Caveats & Gotchas
- • Adding any positive amount to the max timespan overflows. Unlike int64 overflow (which is technically undefined in C++), FTimespan internally uses int64 ticks, so the overflow behaviour is platform-dependent.
- • In Blueprint this node appears as 'Max Value (Timespan)' — you won't find it by searching 'TimespanMaxValue' in the node picker.
Signature
static UE_INL_API FTimespan TimespanMaxValue( ); Return Type
FTimespan Example
Set a cooldown to never expire C++
FTimespan Cooldown = UKismetMathLibrary::TimespanMaxValue();
// Cooldown > any reasonable elapsed time — treated as 'no cooldown expiry' See Also
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?