UKismetMathLibrary::FromMinutes
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Constructs an FTimespan representing the given number of minutes. Useful for match timers, cooldowns, and any duration configured in designer-friendly minute increments.
Caveats & Gotchas
- • Fractional minutes map precisely to the underlying tick representation only when the fractional part is a multiple of 1/600,000,000 (the tick-to-minute ratio). In practice this is unnoticeable for gameplay, but avoid using these values as exact keys for comparison.
- • Negative values are valid. If you receive FromMinutes values from external data (config files, server responses), validate that the sign is intentional before applying them as durations.
Signature
static ENGINE_API FTimespan FromMinutes(double Minutes ); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Minutes | double | Number of minutes (may be fractional). | — |
Return Type
FTimespan Example
Set a 5-minute respawn delay C++
FTimespan RespawnDelay = UKismetMathLibrary::FromMinutes(5.0);
FDateTime RespawnTime = FDateTime::UtcNow() + RespawnDelay; See Also
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?