Is #PB_Compiler_Date UTC or local?
Posted: 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?
http://www.purebasic.com
https://www.purebasic.fr/english/
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())
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?
Would it be possible to add a #PB_Compiler_DateUTC ?