_COMPILETIME$
Jump to navigation
Jump to search
The _COMPILETIME$ function returns the time in the day when a program was compiled.
Syntax
- compTime$ = _COMPILETIME$
Description
- Returns a STRING listing the time as HH:MM:SS using 24 hours notation.
- The purpose of this information is, that a program may print it in "About" boxes, splash screens or in debug logfiles.
- It makes sense to use this function in conjunction with _COMPILEDATE$.
Availability
-
none
-
v4.5.0
-
yes
-
yes
-
yes
Examples
- Showcasing all general compiler information functions.
'Getting info where and when a program was compiled. PRINT: PRINT " This program was compiled on "; COLOR 15: PRINT _COMPILEDATE$; COLOR 7: PRINT " at "; COLOR 15: PRINT _COMPILETIME$; COLOR 7: PRINT " by " COLOR 7: PRINT " using "; COLOR 15: PRINT _COMPILERVERSION$; " "; _OS$; COLOR 7: PRINT "." END |
- This is how the output could look like, the exact data actually depends on the circumstances during the compile operation.
This program was compiled on Mar 6 2026 at 19:43:21 by using QB64-PE v4.5.0 [WINDOWS][64BIT]. |
See also