RealDocs

UKismetMathLibrary::EqualEqual_TimespanTimespan

function Engine Blueprint Since 4.7
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns true if A and B represent exactly the same duration. Comparison is performed on the underlying int64 tick count — there is no epsilon tolerance.

Caveats & Gotchas

  • Equality is exact tick-level comparison — two timespans constructed via different paths (e.g., from float seconds vs. from ticks) may differ by a rounding tick and return false even when logically equal.
  • In C++ use the == operator directly on FTimespan; this wrapper exists to expose exact equality to Blueprint.

Signature

static UE_INL_API bool EqualEqual_TimespanTimespan( FTimespan A, FTimespan B );

Parameters

Name Type Description Default
A FTimespan Left-hand timespan.
B FTimespan Right-hand timespan.

Return Type

bool

Example

Check if two cooldowns are identical C++
FTimespan CooldownA = FTimespan::FromSeconds(5.0);
FTimespan CooldownB = FTimespan(0, 0, 5); // 5 seconds via H/M/S
bool bSame = UKismetMathLibrary::EqualEqual_TimespanTimespan(CooldownA, CooldownB);
// bSame == true (both resolve to the same tick count)

Version History

Introduced in: 4.7

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.