Table of Contents

Method AppendTimestamp

Namespace
Bonsai.IO
Assembly
Bonsai.System.dll

AppendTimestamp(string, DateTimeOffset)

Appends a timestamp suffix to a file name without modifying its original extension.

public static string AppendTimestamp(string path, DateTimeOffset timestamp)

Parameters

path string

The file name on which to append the suffix.

timestamp DateTimeOffset

The timestamp to use for generating the suffix.

Returns

string

The new file name where path has been modified to end with the round-trip representation of the specified timestamp but without modifying the file extension.