sysDateFormat

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
System library
   sysCommand
   sysDate
   sysDateFormat
   sysDateTime
   sysDirectory
   sysElapsed
   sysEnvVar
   sysLoadScript
   sysLoadLibrary
   sysLog
   sysLogFile
   sysLogLevel
   sysPrompt
   sysSleep
   sysSecondsSince
   sysShow
   sysStartDate
   sysStartDateTime
   sysStartTime
   sysStartTimestamp
   sysTime
   sysTimestamp
   sysTrace
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  
sysDateFormat(
  [const format]) // new date format to set

Query or change current date format. If no parameter is given, the current date format is queried only.

Valid date formats are:

Format Description
sysDateFormatISO ISO date format as YYYY.MM.DD HH.MM.SS
sysDateFormatEuro European date format as DD.MM.YYYY HH:MM:SS
sysDateFormatISO US date format as MM/DD/YYYY HH.MM.SS

Returns current date format.

Example:

sysDateFormat(sysDateFormatISO);
sysLog(sysDateTime);
sysDateFormat(sysDateFormatEuro);
sysLog(sysDateTime);
sysDateFormat(sysDateFormatUS);
sysLog(sysDateTime);

Output:

2001.06.20 16.00.23
20.06.2001 16:00:23
06/20/2001 16.00.23
  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>