If you want a result like “1 hour”, it’s actually not a time of day, it’s a duration (or a TimeSpan in .NET terminology). When you realize that AX time is number of seconds since midnight, you can easily write something like strFmt("%1 hours", time div 3600).