VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Community Snippets›Devices·Up to Community Snippets · Devices·34 of 70 in Devices

Timer Stopwatch Time Format With Decimals

6762 Views

Report

  • FromSecondsToTimerFormat<public>(Time : float, ?Decimals : int = 3):string=
        DecimalPanner := Pow(10.0, Decimals * 1.0)   
    
        if:
            TruncatedFormat := (Round[Time * DecimalPanner] * 1.0) / DecimalPanner
            TotSecs := Floor[TruncatedFormat]
            Dec := Round[(TruncatedFormat - (TotSecs * 1.0)) * DecimalPanner]
        then:
            var String_Dec : string = "{Dec}"
            DecLength := String_Dec.Length
            for(i := 0..(Decimals - DecLength - 1)):
                set String_Dec = "0" + String_Dec
    
            var String_Secs : string = "00"
            var String_Mins : string = "00"
    
            if(Secs := Mod[TotSecs, 60]):
                if(Secs > 9):
                    set String_Secs = ToString(Secs)  
                else:
                    set String_Secs = "0" + ToString(Secs)
    
            if(Mins := Floor[Time / 60.0]):
                if(Mins > 9):
                    set String_Mins = ToString(Mins)  
                else:
                    set String_Mins = "0" + ToString(Mins)

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games documentation

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Devices · 34 of 70
Prev
fortnite your first verse device webinar tutorial
Next
fortnite remote signal function switcher

Source

Epic Games documentation

View original

Last updated 2026-07-26T12:20:43.934972+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

🦜

Scout · your island guide

The Isle of Verse