Ejemplo n.º 1
0
 /// <summary>
 /// Converts the value of the current <see cref="LocalDateTime"/> object to its equivalent string representation.
 /// </summary>
 /// <returns>String representation of this Point.</returns>
 public override string ToString()
 {
     return
         ($"{TemporalHelpers.ToIsoDateString(Year, Month, Day)}T{TemporalHelpers.ToIsoTimeString(Hour, Minute, Second, Nanosecond)}");
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Converts the value of the current <see cref="LocalDate"/> object to its equivalent string representation.
 /// </summary>
 /// <returns>String representation of this Point.</returns>
 public override string ToString()
 {
     return(TemporalHelpers.ToIsoDateString(Year, Month, Day));
 }