TimeOnly.FromTimeSpan(TimeSpan) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Construit un TimeOnly objet à partir d’un intervalle de temps représentant le temps écoulé depuis minuit.
public:
static TimeOnly FromTimeSpan(TimeSpan timeSpan);
public static TimeOnly FromTimeSpan(TimeSpan timeSpan);
static member FromTimeSpan : TimeSpan -> TimeOnly
Public Shared Function FromTimeSpan (timeSpan As TimeSpan) As TimeOnly
Paramètres
- timeSpan
- TimeSpan
Intervalle de temps mesuré depuis minuit. Cette valeur doit être positive et ne pas dépasser l’heure de la journée.
Retours
Objet TimeOnly représentant le temps écoulé depuis minuit à l’aide de la valeur d’intervalle de temps spécifiée.