<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tztab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tztab/m-p/2616585#M885097</link>
    <description>ah ok... but how do i use tzset? As far as i can see the definition is void tzset(void) and it's supposed to read the environment variable TZ. Can i specify the time zone when using tzset. I've also seen mentioned a function called tzname. Is that the one to use? Could you give me a brief example?&lt;BR /&gt;&lt;BR /&gt;I'm fairly new to hp-unix, hence the questions :)&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;Mikael</description>
    <pubDate>Mon, 19 Nov 2001 13:55:20 GMT</pubDate>
    <dc:creator>Mikael Filen</dc:creator>
    <dc:date>2001-11-19T13:55:20Z</dc:date>
    <item>
      <title>tztab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tztab/m-p/2616582#M885094</link>
      <description>I'm part of a project where we're building a web-based application. Users are going to connect from many different time zones and we want to display times taking the time zone where they live into consideration. Is it possible to use the information stored in tztab for this purpose? I know it's possible to enter a time zone in .profile to display correct time for a user, but in our system (to be) the users will be stored in our database. We would of course store their time zone along with all other user information. The system is coded in c++ and what we'd like to do is to get their local time by supplying their time zone. I'm sure someone has done something like this before.&lt;BR /&gt;&lt;BR /&gt;thanks, &lt;BR /&gt;&lt;BR /&gt;Mikael</description>
      <pubDate>Mon, 19 Nov 2001 12:52:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tztab/m-p/2616582#M885094</guid>
      <dc:creator>Mikael Filen</dc:creator>
      <dc:date>2001-11-19T12:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: tztab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tztab/m-p/2616583#M885095</link>
      <description>If each connected user is run as a seperate UNIX process, look to alter the environment for that user process - see environ(5)&lt;BR /&gt;That way all the hard work is done for you...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Nov 2001 12:58:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tztab/m-p/2616583#M885095</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2001-11-19T12:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: tztab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tztab/m-p/2616584#M885096</link>
      <description>Why not use ctime, tzset, and others by retreiving from your DB their TZ, then setting it? No need to reinvent the wheel?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 19 Nov 2001 12:59:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tztab/m-p/2616584#M885096</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-19T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: tztab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tztab/m-p/2616585#M885097</link>
      <description>ah ok... but how do i use tzset? As far as i can see the definition is void tzset(void) and it's supposed to read the environment variable TZ. Can i specify the time zone when using tzset. I've also seen mentioned a function called tzname. Is that the one to use? Could you give me a brief example?&lt;BR /&gt;&lt;BR /&gt;I'm fairly new to hp-unix, hence the questions :)&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;Mikael</description>
      <pubDate>Mon, 19 Nov 2001 13:55:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tztab/m-p/2616585#M885097</guid>
      <dc:creator>Mikael Filen</dc:creator>
      <dc:date>2001-11-19T13:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: tztab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tztab/m-p/2616586#M885098</link>
      <description>I guess you'd use putenv(3c) to set your environment - of course you need to remeber this will chnage this value for the whole user process, so be careful!&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 19 Nov 2001 14:27:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tztab/m-p/2616586#M885098</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2001-11-19T14:27:24Z</dc:date>
    </item>
  </channel>
</rss>

