UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 62722

2014.2 SDK: gmtime() does not work correctly in standalone BSP

Description

I initialize time structure:
 

struct tm init_tm = {1,2,3,4,5,6,6,8,0,10,11 };

Then use "mktime()" to convert time to arithmetic representation, and use "gmtime()" to convert arithmetic representation to UTC traditional form.

However, the output of my test is similar to the following:
 

Hello World
initial time stamp = 3565989572
mktime output time stamp = 2288597417
tm_sec = 1
tm_min = 2
tm_hour = 3
tm_mday = 4
tm_mon = 5
tm_year = 6
tm_wday = 1
tm_yday = 154
tm_isdst = 0
__extra_1 = 0
__extra_2 = 0


The first six parameters are calculated correctly.

However "tm_wday" and "tm_yday" are not generated correctly.
 
Is this a known issue?

Solution

Currently "gmtime()" is not supported in the standalone BSP. 
AR# 62722
Date Created 11/05/2014
Last Updated 12/03/2014
Status Active
Type Known Issues
Tools
  • Vivado Design Suite - 2014.2
  • Vivado Design Suite - 2014.3