date()

含义:Return the date and time as a 24-character string

Format

date()

Parameters

This function has no parameters.

Description

The date() function returns the current date and time as a 24-character string.The date() function is equivalent to the C library ctime(3) function. The date() function is also equivalent to the PSL statement:

asctime(time());

Example

Code:

today=date();
print("today is: ",today,"\n");

Output:

BMC PSL function(29)-date()_date()