Please enable JavaScript to view this site.


int = MillionsFromHMS(nHrs,nMins,nSecs)


This macro function takes in values for nHrs,nMins,nSecs and returns a number which is the portion of the day expressed in one millionth of a day (for example, 6am is 250000, noon is 500000, and 6pm is 750000).


One millionth of a day is less than 1/10th of a second.


If you call this function with the triplet values 23,59,59 for nHrs,nMins,nSecs, then the return value will be 1000000 (instead of 999988).


See also: HoursFromMillion, MinutesFromMillion and SecondsFromMillion.


Topic 179980, last updated on 18-Apr-2020