Login Page - Create Account

Support Board


Date/Time: Tue, 11 Feb 2025 18:17:47 +0000



Post From: Convert HMS to MInutes

[2020-09-13 12:34:46]
User907968 - Posts: 826
If you already have an SCDateTime variable, for minutes you could use GetTimeInSeconds() / 60
Working with the SCDateTime Variables and Values: GetTimeInSeconds()

int Minutes = dateTime.GetTimeInSeconds() / 60;

If you first need to construct the SCDateTime variable from HMS (or just MS) you could use the appropriate constructor.
Working with the SCDateTime Variables and Values: SCDateTime() Constructors

SCDateTime(int Hour, int Minute, int Second, int Millisecond);

SCDateTime dateTime(H, M, S, 0);