Login Page - Create Account

Support Board


Date/Time: Wed, 01 May 2024 11:52:20 +0000



Post From: Convert HMS to MInutes

[2020-09-13 12:34:46]
User907968 - Posts: 802
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);