diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-11-26 17:23:38 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-11-26 17:23:38 +0200 |
| commit | 262c1efc9d53b8b70fe677dc7d2d173896ffcee8 (patch) | |
| tree | e404dc914bee89101f50963ff018225c897244fd /Software/Visual_Studio/Tango.Core/ExtensionMethods | |
| parent | 0a8af16821cfbb52fe02881921695d378f6578d7 (diff) | |
| download | Tango-262c1efc9d53b8b70fe677dc7d2d173896ffcee8.tar.gz Tango-262c1efc9d53b8b70fe677dc7d2d173896ffcee8.zip | |
Implemented Tango SQLite DB Synchronizer.
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/ExtensionMethods')
| -rw-r--r-- | Software/Visual_Studio/Tango.Core/ExtensionMethods/DateTimeExtensions.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/ExtensionMethods/DateTimeExtensions.cs b/Software/Visual_Studio/Tango.Core/ExtensionMethods/DateTimeExtensions.cs new file mode 100644 index 000000000..2c413b787 --- /dev/null +++ b/Software/Visual_Studio/Tango.Core/ExtensionMethods/DateTimeExtensions.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + + +public static class DateTimeExtensions +{ + /// <summary> + /// Converts the DateTime instance to an accurate time string. + /// </summary> + /// <param name="date">The date.</param> + /// <returns></returns> + public static String ToTimeString(this DateTime date) + { + return date.ToString("HH:mm:ss.ff"); + } +} |
