Author Topic: _time('F') seems wrong  (Read 4867 times)

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
_time('F') seems wrong
« on: October 22, 2018, 02:44:12 AM »
The help for _time('F') says this.  For hh I'm getting 02 when its 3:40 pm.  Is there some timezone adjustment on this?  With 'T' option I get 3:40pm.
Timezone here is UTC + 12:00 and we're in one hour daylight saving mode.
I'm trying to use current time-date in a filename.

* <dt>'F'</dt><dd>Return time in the format YYYYMMDDhhmmssfff
 * where YYYY is the year, MM is the month,
 * DD is the day, hh is an hour between 0 and 23,
 * mm is the minutes between 0 and 59, ss is the
 * seconds between 0 and 59, and fff is the fractional
 * second, in milliseconds.</dd>



Code: [Select]
_command void testtime() name_info(',')
{
   message(_time('F'));
}


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6823
  • Hero Points: 526
Re: _time('F') seems wrong
« Reply #1 on: October 22, 2018, 04:37:10 PM »
Docs need to be fixed. This is UTC time.

You can get the local time with _time('M')