× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thank you for your answer,

but

tm = gmtime(Unixtime);

give the same wrong result as

mytime = gmtime(Unixtime) ;

The RPG Debug looks like following

EVAL MyTime
TM_SEC OF MYTIME = 0
TM_MIN OF MYTIME = 0
TM_HOUR OF MYTIME = 0
TM_MDAY OF MYTIME = 1
TM_MON OF MYTIME = 0
TM_YEAR OF MYTIME = 70
TM_WDAY OF MYTIME = 4
TM_YDAY OF MYTIME = 0
TM_ISDST OF MYTIME = 0

The C-Program Debug looks like following
(this is correct)

EVAL *ptm
(*ptm).tm_sec = 22
(*ptm).tm_min = 32
(*ptm).tm_hour = 15
(*ptm).tm_mday = 15
(*ptm).tm_mon = 2
(*ptm).tm_year = 107
(*ptm).tm_wday = 4
(*ptm).tm_yday = 73
(*ptm).tm_isdst = 0

best regards
Burkhard Quindt


message: 8
date: Thu, 15 Mar 2007 10:12:17 -0500
from: "Bob Cozzi" <bob@xxxxxxxxxxxx>
subject: RE: C-Function gmtime() within ILE RPG

Ah...

    D MyTime          DS                  based(tm)
      Unixtime = 1173954308 ;
      mytime = gmtime(Unixtime) ;

Shouldn't you code it like this:

      Unixtime = 1173954308 ;
      tm = gmtime(Unixtime) ;



ZAPF GmbH
Nuernberger Straße 38 - 95440 Bayreuth - Telefon (09 21) 6 01-0 - Telefax (09 
21) 6 01-6 77
Sitz der Gesellschaft: Bayreuth - Registergericht: AG Bayreuth HRB 3204
Geschaeftsfuehrer: Dipl.-Kfm. Rolf Baresel - Dipl.-Ing. (FH) Manfred Meinzer - 
Thierry Potok
info@xxxxxxxxxxxx - www.zapf-gmbh.de


RECHTSHINWEIS | Diese E-Mail enthaelt vertrauliche und/oder rechtlich
geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder
diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
unbefugte Weitergabe dieser Mail ist nicht gestattet.

LEGAL NOTICE | This e-mail may contain confidential and/or privileged
information. If you are not the intended recipient (or have received this
e-mail in error) please notify the sender immediately and destroy this
e-mail. Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.