Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Small method to calculate since time
Message
De
10/10/2011 06:53:30
 
 
À
10/10/2011 06:27:45
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01525501
Message ID:
01525948
Vues:
28
>More possible improvements ? :
>
>Return a DateTimeSpan regardless of the parameter order.
>i.e if first parameter is the later date still return the same difference (or possibly a 'negative' DateTimeSpan)
>
hmmm - I like the parameter order - one is supposed to know what one is doing - too much foxpro like

Could add an optional parameter ( bool ) and work with min/max - but don't like that either

A negative one - thought about that - add a sign ?

>Make GetDateDiff logic available as an extension method of DateTime
>e.g. DateTimeSpan dts = myDate.DateDiff(DateTime.Now);

yes -

When time permits - playtime is suspended - want that xbrl stuff out as soon as I can

A change I did this morning - could not resist - was to make all the set-accessors private - seemed like a good thing to do

And there must be other things to do I don't see at the moment: There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy

But at the very least - it's an interesting excercise
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform