Difference between revisions of "Struct mu timezone"

From Mailutils
Jump to navigationJump to search
(Created page with "{{DISPLAYTITLE:struct mu_timezone}} The structure <tt>mu_timezone</tt> keeps time zone information. It is defined in <tt>mailutils/datetime.h</tt> as follows: <source lang="C">...")
 
 
Line 2: Line 2:
 
The structure <tt>mu_timezone</tt> keeps time zone information.  It is defined in <tt>mailutils/datetime.h</tt> as follows:
 
The structure <tt>mu_timezone</tt> keeps time zone information.  It is defined in <tt>mailutils/datetime.h</tt> as follows:
  
<source lang="C">
+
<syntaxhighlight lang="C">
 
struct mu_timezone
 
struct mu_timezone
 
{
 
{
Line 8: Line 8:
 
   const char *tz_name;
 
   const char *tz_name;
 
};
 
};
</source>
+
</syntaxhighlight>
  
 
Its members are:
 
Its members are:

Latest revision as of 13:35, 16 October 2023

The structure mu_timezone keeps time zone information. It is defined in mailutils/datetime.h as follows:

struct mu_timezone
{
  int utc_offset;
  const char *tz_name;
};

Its members are:

tc_offset
Seconds east of UTC.
tz_name
Nickname for this timezone, if known. NULL otherwise. It is always considered to be a pointer to static string, so should never be freed.