Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date Calculation
Message
De
28/03/2004 15:11:24
 
 
À
28/03/2004 01:54:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00890235
Message ID:
00890289
Vues:
16
You must choose a reference date.
LOCAL nYear,nMonth,nDay
=DaysToYMD(650,@m.nYear,@m.nMonth,@m.nDay)
? m.nYear,m.nMonth,m.nDay

FUNCTION DaysToYMD(iDays,iYear,iMonth,iDay)
  * REFERENCE {^1900/01/01}
  PRIVATE dDays
  STORE {^1900/01/01}+m.iDays TO dDays
  STORE YEAR(m.dDays) -1900 TO iYear
  STORE MONTH(m.dDays)-1    TO iMonth
  STORE DAY(m.dDays)  -1    TO iDay
ENDFUNC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform