[VB.net] Obtenir le timestamp
Résolu
afrodje
Messages postés
759
Date d'inscription
Statut
Membre
Dernière intervention
-
afrodje Messages postés 759 Date d'inscription Statut Membre Dernière intervention -
afrodje Messages postés 759 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
je cherche à obtenir la date en format UNIX ( ex : 1202479311) sous VB.net.
Merci
je cherche à obtenir la date en format UNIX ( ex : 1202479311) sous VB.net.
Merci
A voir également:
- Vb.net timestamp
- Vb.net express - Télécharger - Langages
- Vb.net - Télécharger - Langages
- Oracle_jre_usage timestamp ✓ - Forum Virus
- VB.net ou c# ? - Forum Framework .NET
- Vb.net xml ✓ - Forum Framework .NET
3 réponses
Voila
Public Function date_en_temp_unix(ByVal dt As Date) As Long 'converti de date et heure vers temps unix Dim origin As New Date(1970, 1, 1) Dim span As TimeSpan = dt - origin Dim seconds As Double = span.TotalSeconds Return CType(seconds, Long) End Function