Skip to main content

Expansion of Time Format in Xshell’s Logging

By Monday March 14th, 2016March 16th, 2016Tips & Tricks

Xshell 5 Build 0940/Xmanager Enterprise Build 0922 have incorporated several time formats which can now be used in file names when logging a session. This will help with accurately and quickly locating log files when required. The full list can be found below:

  • %a Abbreviated weekday name. Mon, Tue etc.
  • %A Full weekday name
  • %b Abbreviated month name
  • %B Full month name
  • %d Day of month as decimal number (01 – 31)
  • %H Hour in 24-hour format (00 – 23)
  • %I Hour in 12-hour format (01 – 12)
  • %j Day of year as decimal number (001 – 366)
  • %m Month as decimal number (01 – 12)
  • %M Minute as decimal number (00 – 59)
  • %p Current locale’s A.M./P.M. indicator for 12-hour clock
  • %S Second as decimal number (00 – 59)
  • %U Week of year as decimal number, with Sunday as first day of week (00 – 53)
  • %w Weekday as decimal number (0 – 6; Sunday is 0)
  • %W Week of year as decimal number, with Monday as first day of week (00 – 53)
  • %y Year without century, as decimal number (00 – 99)
  • %Y Year with century, as decimal number
  • %% Percent sign

Session files created in earlier Builds will have %d automatically changed to %Y-%m-%d once the file is saved from within Build 0940.

Leave a Reply

four × five =