TimeSerial

 

Definition: Returns a Variantof subtype Datecontaining the time for a specific hour, minute, and second.

 

Like DateSerial, this is a function that is in no danger of being overused. However, if you want to pass in values for the hours, minutes, and seconds and get back a timevalue (as opposed to a date-time value) the following command will do the trick:

 

$a = get-date -h 17 -mi 10 -s 45 - displayhinttime

 

Note. As you probably figured out for yourself, the –hparameter represents the hours, the –miparameter represents the minutes, and the –sparameter represents the seconds. Values for the hours are based on a 24-hour clock.

 

When you run this command and then echo back the value of $ a youshould get the following:

 

5:10:45 PM