get system time

Return the current local time of the test machine.
NameDescriptionTypeModifier
format

(Optional) Specifies the time format to be returned.

Allowable values:

  • 12: 12 hour time format.
  • 24: 24 hour time format.

Default Value: 12
Value Set12, 24
hour

Variable to hold returned hour portion of time.

StringNone
minute

Variable to hold returned minute portion of time.

StringNone
second

Variable to hold returned seconds portion of time.

StringNone
AM/PM

Variable to hold AM or PM indicator (valid only if the format argument is set to 12).

Possible returned values:

  • AM
  • PM

StringNone
The current local time.
This action may be used within the following project items: test modules and user-defined actions.
The following settings are applicable to this action: remove double quotes from cells.
                                
                                    	format	hour	minute	second	AM/PM
get system time	12	h1	m1	s1	d
get system time	24	h2	m2	s2	
                                
                            
  • If the variables in arguments hour, minute, second or AM/PM have not been declared, the action creates them as globals.
  • For each of hour, minute, second and AM/PM, if the argument is left empty, a variable with the same name as the argument header is created to hold the return value.
  • This action supports the <ignore> modifier. If the string <ignore> is present as the value of any of the arguments, or any argument contains an expression that evaluates to <ignore>, the action is skipped during execution.

Copyright © 2023 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1(800) 322-0333