Commit 673b70b0 authored by Dillon Adams's avatar Dillon Adams Committed by Marc Gravell

Extending description of the IServer.Time and IServer.TimeAsync by specifying...

Extending description of the IServer.Time and IServer.TimeAsync by specifying the timezone of the return values (#1311)
parent 3aa18e66
...@@ -607,7 +607,8 @@ public partial interface IServer : IRedis ...@@ -607,7 +607,8 @@ public partial interface IServer : IRedis
Task SwapDatabasesAsync(int first, int second, CommandFlags flags = CommandFlags.None); Task SwapDatabasesAsync(int first, int second, CommandFlags flags = CommandFlags.None);
/// <summary> /// <summary>
/// The TIME command returns the current server time. /// The TIME command returns the current server time in UTC format.
/// Use the DateTime.ToLocalTime() method to get local time.
/// </summary> /// </summary>
/// <param name="flags">The command flags to use.</param> /// <param name="flags">The command flags to use.</param>
/// <returns>The server's current time.</returns> /// <returns>The server's current time.</returns>
...@@ -615,7 +616,8 @@ public partial interface IServer : IRedis ...@@ -615,7 +616,8 @@ public partial interface IServer : IRedis
DateTime Time(CommandFlags flags = CommandFlags.None); DateTime Time(CommandFlags flags = CommandFlags.None);
/// <summary> /// <summary>
/// The TIME command returns the current server time. /// The TIME command returns the current server time in UTC format.
/// Use the DateTime.ToLocalTime() method to get local time.
/// </summary> /// </summary>
/// <param name="flags">The command flags to use.</param> /// <param name="flags">The command flags to use.</param>
/// <returns>The server's current time.</returns> /// <returns>The server's current time.</returns>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment