​What's the best way (if any) to get tm_gmtoff and tm_zone from the host, as provided by _GNU_SOURCE​ ?

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • ​What's the best way (if any) to get tm_gmtoff and tm_zone from the host, as provided by _GNU_SOURCE​ ?

      What's the best way (if any) to get tm_gmtoff and tm_zone from the host, as provided by _GNU_SOURCE ?

      If it's not (currently) possible to get tm_gmtoff and tm_zone from the host, could you please consider adding the functionality to debugio.h ?

      Thanks
    • Hello,

      You can get the unixtime with debug_time().
      But dates or timezones currently are not supported and there are currently no plans to expand the functionality of debugio.h here.

      Best regards,
      Nino
      Please read the forum rules before posting: Forum Rules

      Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support contact us per e-mail.
      Alternatively our support system can be used as well: segger.com/ticket/