VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

RoundedTime

Brian Battles WS1O  (15 Submissions)   Math/Dates   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Generate string containing current time rounded to the nearest N minutes (eg, set it for 5-minute intervals and 3:15 to 3:20 PM are displayed as 15:15). Could be used to fire events every N minutes, or whatever.

Inputs
Current time (from Timer control, or VB Now() function, etc)

Returns
String formatted as HH:MM (eg, 13:20)

Rate RoundedTime (3(3 Vote))

Download RoundedTime

RoundedTime Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters