DateUtils.FormatElapsedTime Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FormatElapsedTime(StringBuilder, Int64) |
Formats an elapsed time in a format like "MM:SS" or "H:MM:SS" (using a form suited to the current locale), similar to that used on the call-in-progress screen. |
FormatElapsedTime(Int64) |
Formats an elapsed time in the form "MM:SS" or "H:MM:SS" for display on the call-in-progress screen. |
FormatElapsedTime(StringBuilder, Int64)
Formats an elapsed time in a format like "MM:SS" or "H:MM:SS" (using a form suited to the current locale), similar to that used on the call-in-progress screen.
[Android.Runtime.Register("formatElapsedTime", "(Ljava/lang/StringBuilder;J)Ljava/lang/String;", "")]
public static string? FormatElapsedTime (Java.Lang.StringBuilder? recycle, long elapsedSeconds);
[<Android.Runtime.Register("formatElapsedTime", "(Ljava/lang/StringBuilder;J)Ljava/lang/String;", "")>]
static member FormatElapsedTime : Java.Lang.StringBuilder * int64 -> string
Parameters
- recycle
- StringBuilder
StringBuilder
to recycle, or null to use a temporary one.
- elapsedSeconds
- Int64
the elapsed time in seconds.
Returns
- Attributes
Remarks
Formats an elapsed time in a format like "MM:SS" or "H:MM:SS" (using a form suited to the current locale), similar to that used on the call-in-progress screen.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
FormatElapsedTime(Int64)
Formats an elapsed time in the form "MM:SS" or "H:MM:SS" for display on the call-in-progress screen.
[Android.Runtime.Register("formatElapsedTime", "(J)Ljava/lang/String;", "")]
public static string? FormatElapsedTime (long elapsedSeconds);
[<Android.Runtime.Register("formatElapsedTime", "(J)Ljava/lang/String;", "")>]
static member FormatElapsedTime : int64 -> string
Parameters
- elapsedSeconds
- Int64
the elapsed time in seconds.
Returns
- Attributes
Remarks
Formats an elapsed time in the form "MM:SS" or "H:MM:SS" for display on the call-in-progress screen.
Java documentation for android.text.format.DateUtils.formatElapsedTime(long)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.