Using the %sitefiledate, %sitefiledatetime, %sitefilesize, and %sitefiletime Variables

Top  Previous  Next

 

The %sitefiledate, %sitefiledatetime, %sitefilesize, and %sitefiletime variables are initialized to the file date, file time, and/or file size of the last FTP site file or directory returned by the GETSITEFILE script command. (%nextsitesize is not meaningful if a directory is returned.)

 

The format of the date and time are the same as the %date, %datetime, and %time variables, and the %nextfiledate, %nextfiledatetime, and %nextfiletime variables.

 

The %sitefiledate variable is in the form mm-dd-yy (i.e., 02-16-01). Note: the more common mm/dd/yy (i.e. 02/16/01) form is not used so that the %sitefiledate variable may be used to name files.

 

The %sitefiledatetime variable contains a formatted date and time string (i.e., Sat Feb 17 11.00.22 2001).

 

The %sitefiletime variable is in the form hh.mm.ss (i.e., 11.00.22). Note: the more common hh:mm:ss (i.e. 11:00:22) form is not used so that the %sitefiletime variable may be used to name files.

 

The %sitefilesize variable contains an integer string value corresponding to the size of the file in bytes (i.e., 66001).

 

Refer to GETSITEFILE for more details.        

 

The DATEADD and DATESUB script commands may be used to manipulate %nextsitedate or other date variable.

 

Note: the DATETIMEADD and DATETIMESUB script commands cannot be used in this way.

See also:        Using the %date, %datetime, and %time Variables,

 Using the %nextfiledate, %nextfiledatetime, %nextfilesize, and %nextfiletime Variables