Display File Date and Time in Local Format

Visual SlickEdit® - Slick-C Macro - Royalty Free - 2005.01.01 17:15
Send Comments


Display File Date and Time in Local Format.


This function adds a Visual SlickEdit capability.

This function displays the date and time stamp from a file using the local format. It then returns the string to the caller.

If no file is specified, the date and time of the file associated with the current buffer is displayed.


tlaaFileDateTime( )
tlaaFileDateTime( "tlaSlick.e" )
tlaaFileDateTime( "D:\Develop\e\tlaSlick.e" )

Input Parameters

Parm Name Value Meaning
1 Filename   Display date and time of current file.
filename Display fate and time of filename..

Return Codes

String containg Date/Time from specified file in the form:

filename | date | time |

Code Message/Meaning
<null> filename -- not found -- Error.
filename | date | time | filename | date | time |




Current version verified under:

  • Visual SlickEdit 8.0.1


Perform the following steps:

  • Select the Code button on this page.
  • When the second window opens, select all the text in the text box.
  • Issue Ctl-C (copy).
  • Create a file in Visual SlickEdit with type Slick-C and extension ".e".
  • Issue Ctl-V (paste).
  • Issue Ctl-S (save).
  • Select PFK-12 to compile the macros.


tlaSlick is a Visual Slick-C module that contains all of the Slick-C macros on this website in a single easy to install package. The tlaSlick module can be purchased by selecting the Buy button on this page.

tlaFileDateTime is included as a function in tlaSlick.

Copyright © 1993-2005 Thom Little Associates, Ltd. revised 2005.01.01 17:15
One Central Square, Keene, NH 03431-3787 phone 603-357-7567