Author Topic: How do I display file's timestamp?  (Read 638 times)

rgloden

  • Senior Community Member
  • Posts: 133
  • Hero Points: 3
How do I display file's timestamp?
« on: February 16, 2014, 09:58:30 pm »
Is there an easy way to see a file's date/timestamp?

Seems like date/timestamp would in the status bar for the file which currently has the focus.

hs2

  • Senior Community Member
  • Posts: 2725
  • Hero Points: 281
Re: How do I display file's timestamp?
« Reply #1 on: February 17, 2014, 12:29:36 am »
Currently it's displayed in the 'Backup History' tool window (topmost entry).
To check it on demand you could use a macro (bound to a key or button)
Example:
Code: [Select]
_command void show_filetimestamp() name_info(','VSARG2_MARK|VSARG2_REQUIRES_EDITORCTL)
{
   bf := p_buf_name;
   if ( bf != '' )
   {
      ts := _file_date(bf, 'L') :+ " - " :+ _file_time(bf, 'L');
      message("'" bf "' " ts);
   }
}
IMHO the file timestamp is not interesting enough to permanently display it in the status bar.
HS2