[cs631apue] About test env TZ

Elliot Wasem ewasem at stevens.edu
Tue Oct 15 09:00:35 EDT 2019


Hey Yuxi,

Check out "man 7 environ" (or is it man 7 environment?) for the format of
the TZ variable.

I think I remember using tzset() (I forget if that's man 2 or man 3) to set
the time zone for the program.

Hope that helps,
Elliot

On Tue, Oct 15, 2019, 8:57 AM Yuxi Wang <ywang286 at stevens.edu> wrote:

>
>
> Hello professor,
>
>
>
> Could you tell me how to test my program with TZ?
>
> Just set the env using export TZ=GMT?
>
>
>
> Actually I use ctime(3) to get the time. Does it use TZ inside of it?
>
>
>
> Thank you
>
>
>
> Yuxi Wang
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20191015/feed0de4/attachment.html>


More information about the cs631apue mailing list