[SOLVED] ​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.

  • [SOLVED] ​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.

    Keep in mind, this is *not* a support forum.
    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 you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.