Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Oct 1998 03:22:54 -0700 (PDT)
From:      estartu@augusta.de
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   misc/8156: mktime does not set tm_wday
Message-ID:  <199810051022.DAA16177@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         8156
>Category:       misc
>Synopsis:       mktime does not set tm_wday
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct  5 03:30:00 PDT 1998
>Last-Modified:
>Originator:     Gerhard Schmidt
>Organization:
Augsburger Computer Forum e.V.
>Release:        2.2.7-stable
>Environment:
FreeBSD inga.augusta.de 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Thu Sep 17 15:22:59 MET DST 1998     root@inga.augusta.de:/usr/src/sys/compile/INGA  i386

>Description:
I have to finde out the weeekday of a spezific date and tryed to do
this using mktime. As Said in the Manpage tm_wday is set to the weekday
the programm fills the struct tm with the date and calles mktime 
but after return tm_wday hasn't change. 
>How-To-Repeat:
struct tm Z
Z->tm_mday = 1;
Z->tm_mon = 1;
Z->tm_year = 1999;
Z->tm_isdst = -1;
mktime(&Z);

>Fix:

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810051022.DAA16177>