简体   繁体   中英

BlueSky Statistics - String to date [time] issues

Trying to convert time as a string to a time variable. Use Date/Dates/Convert String to Date...... for format I use %H:%M:%S.... Here is the syntax from the GUI

[Convert String Variables to Date]

BSkystrptime (varNames = c('Time'),dateFormat = "%H:%M:%S",prefixOrSuffix = "prefix",prefixOrSuffixValue = "Con_",data = "Dataset2") BSkyLoadRefreshDataframe(dframe=Dataset2,load.dataframe=TRUE) A screen shot of result is attached.... Compare variables Time [string] to Con_Time [date/time] The hours are 2 hours out [wrong!] - the Minutes and Seconds are correct. What am I doing wrong here? Screen Shot

I believe you are running into a known issue with a prior release of BlueSky Statistics. This issue is fixed with the current stable release available on the download page.

The reason for this was although the time is converted correctly into the local time zone, BlueSky Statistics was reading the time zone in the local time zone and converting it to UTC.

You are probably +2 hours ahead of UTC, so you are seeing the time move 2 hrs back. Give us a couple of days to post a patch.

You can also confirm this by writing and executing the following syntax in the syntax window

Dataset2$Con_Time

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM