Is #PB_Compiler_Date UTC or local?
Is #PB_Compiler_Date UTC or local?
Quick question as per the subject line - is the date returned by #PB_Compiler_Date in UTC or local time?
-
- Addict
- Posts: 4791
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Is #PB_Compiler_Date UTC or local?
It's local time (at least on Windows).mikejs wrote: Tue Feb 04, 2025 1:23 pm Quick question as per the subject line - is the date returned by #PB_Compiler_Date in UTC or local time?
Code: Select all
; PB 6.20 beta 4 (x64)
#Mask$ = "%yyyy-%mm-%dd %hh:%ii:%ss"
Debug FormatDate(#Mask$, #PB_Compiler_Date)
Debug FormatDate(#Mask$, Date())
Debug FormatDate(#Mask$, DateUTC())
Re: Is #PB_Compiler_Date UTC or local?
Thanks for this..
I'm in the UK, where the current timezone is the same as UTC, so the snippet you posted returns three identical timestamps. I'm guessing you get different results with #PB_Compiler_Date matching the local timestamp?
I'm in the UK, where the current timezone is the same as UTC, so the snippet you posted returns three identical timestamps. I'm guessing you get different results with #PB_Compiler_Date matching the local timestamp?
Re: Is #PB_Compiler_Date UTC or local?
Yes it's local time, I will add it to the doc
-
- Addict
- Posts: 4791
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Is #PB_Compiler_Date UTC or local?
Yes, exactly. I forgot to mention that, sorry!mikejs wrote: Thu Feb 06, 2025 11:34 am I'm guessing you get different results with #PB_Compiler_Date matching the local timestamp?
Re: Is #PB_Compiler_Date UTC or local?
Would it be possible to add a #PB_Compiler_DateUTC ?
