Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime variation in HH:MM:SS
Message
De
07/09/2002 14:36:56
 
 
À
07/09/2002 13:47:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00697929
Message ID:
00697935
Vues:
19
>One possiblility is (if # seconds < 86400)
>
>
>? ttoc( { 00:00:00 } + abs(DateTimeValue1 - DateTimeValue2), 2)
>
>
>another is (# seconds > 86400)
>
>
>
>local s
>s = abs(DateTimeValue1 - DateTimeValue2)
>?transform( int(s/3600)*10000 + mod(int(s/60),60)*100 + mod(s,60), '99999:99:99')
>
The first one doesn't work. It gives Ambigious date/datetime constant.

The second works but ends up with empty space where no value such as:
  :  :12
  :23:56
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform