POSIX.1-2008 and struct tm

I am using windows11 and IDE 2.3.2. How to declare tm as a complete type?
image

tm timeinfo;
#include <time.h>

void doSomething()
{
  unsigned long yl_tm = 1668701337;
  time_t now = yl_tm; //epoch
  tm tm; // a tm structure
  //localtime_r(&now, &tm);
  gmtime_r(&now, &tm);

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.