UKismetMathLibrary::GreaterEqual_DateTimeDateTime
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if A is later than or equal to B (A >= B). Use when you want a check to pass at the exact boundary moment as well as after it.
Caveats & Gotchas
- • At tick precision the equal case (A == B) is nearly impossible between independently obtained timestamps, so Greater_DateTimeDateTime is often sufficient in practice. Use this form when A and B may have been explicitly assigned the same value.
- • Like all FDateTime comparisons, this is meaningless if A and B were constructed from different time bases (UTC vs local). Silent bugs from this are common in save-game and leaderboard code.
Signature
static UE_INL_API bool GreaterEqual_DateTimeDateTime( FDateTime A, FDateTime B ); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | FDateTime | The date-time to test. | — |
| B | FDateTime | The date-time to compare against. | — |
Return Type
bool Example
Gate content unlock on a specific date C++
FDateTime UnlockDate(2025, 12, 1, 0, 0, 0, 0); // Dec 1 2025 midnight UTC
FDateTime Now = FDateTime::UtcNow();
bool bUnlocked = UKismetMathLibrary::GreaterEqual_DateTimeDateTime(Now, UnlockDate); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?