34 references to ToString
Aspire.Dashboard.Tests (4)
TelemetryApiServiceTests.cs (4)
549var cutoff = s_testTime.AddMinutes(1).AddSeconds(30).ToString("O"); 566var cutoff = s_testTime.AddMinutes(2).AddSeconds(30).ToString("O"); 583var cutoff = s_testTime.AddMinutes(2).ToString("O"); 600var cutoff = s_testTime.AddSeconds(30).ToString("O");
Aspire.Deployment.EndToEnd.Tests (2)
Helpers\AzureAuthenticationHelpers.cs (1)
111var timestamp = DateTime.UtcNow.ToString("yyyyMMddHHmmss");
Helpers\DeploymentE2ETestHelpers.cs (1)
60return string.IsNullOrEmpty(runId) ? DateTime.UtcNow.ToString("yyyyMMddHHmmss") : runId;
Aspire.Hosting (3)
Dashboard\ResourceSnapshot.cs (3)
48yield return (KnownProperties.Resource.CreateTime, CreationTimeStamp is null ? Value.ForNull() : Value.ForString(CreationTimeStamp.Value.ToString("O")), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 49yield return (KnownProperties.Resource.StartTime, StartTimeStamp is null ? Value.ForNull() : Value.ForString(StartTimeStamp.Value.ToString("O")), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 50yield return (KnownProperties.Resource.StopTime, StopTimeStamp is null ? Value.ForNull() : Value.ForString(StopTimeStamp.Value.ToString("O")), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null);
Microsoft.Build (1)
Logging\BinaryLogger\BinaryLogger.cs (1)
716=> $"{DateTime.UtcNow.ToString("yyyyMMdd-HHmmss")}--{EnvironmentUtilities.CurrentProcessId}--{StringUtils.GenerateRandomString(6)}";
Microsoft.Build.Framework (3)
ItemSpecModifiers.cs (3)
584? info.LastWriteTime.ToString(FileUtilities.FileTimeFormat) 589? info.CreationTime.ToString(FileUtilities.FileTimeFormat) 594? info.LastAccessTime.ToString(FileUtilities.FileTimeFormat)
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\MSBuildTask\CopyRefAssembly.cs (2)
70Log.LogMessageFromResources(MessageImportance.Low, "CopyRefAssembly_Changed", SourcePath, File.GetLastWriteTimeUtc(SourcePath).ToString("O"), source, DestinationPath, File.GetLastWriteTimeUtc(DestinationPath).ToString("O"), destination);
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\VersionStamp.cs (1)
139return _utcLastModified.ToString("o") + "-" + _globalIncrement + "-" + _localIncrement;
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Redaction\RedactorTest.cs (1)
288Assert.Equal(data.ToString("R"), new string(buffer, 0, charsWritten));
Microsoft.ML.Data (1)
Utilities\TimerScope.cs (1)
49_ch.Info("{0}\t Time elapsed(s): {1}\n\n", DateTime.UtcNow.ToString("MM/dd/yyyy H:mm:ss tt"), elapsedSeconds);
Microsoft.ML.FastTree (1)
TreeEnsemble\InternalTreeEnsemble.cs (1)
201sb.AppendFormat("\n\n[Comments]\nC:0=Regression Tree Ensemble\nC:1=Generated using FastTree\nC:2=Created on {0}\n", DateTime.UtcNow.ToString("MM/dd/yyyy H:mm:ss tt"));
Microsoft.ML.Samples (10)
Dynamic\DataOperations\DataViewEnumerable.cs (2)
43$"{row.Date.ToString("d")}\t{row.Temperature}"); 55Console.WriteLine($"{row.Date.ToString("d")}\t{row.Temperature}"
Dynamic\DataOperations\FilterRowsByColumn.cs (2)
27$"{row.Date.ToString("d")}\t{row.Temperature}"); 60$"{row.Date.ToString("d")}\t{row.Temperature}");
Dynamic\DataOperations\ShuffleRows.cs (2)
26Console.WriteLine($"{row.Date.ToString("d")}" + 50Console.WriteLine($"{row.Date.ToString("d")}" +
Dynamic\DataOperations\SkipRows.cs (2)
25Console.WriteLine($"{row.Date.ToString("d")}" + 54Console.WriteLine($"{row.Date.ToString("d")}" +
Dynamic\DataOperations\TakeRows.cs (2)
26Console.WriteLine($"{row.Date.ToString("d")}" + 55Console.WriteLine($"{row.Date.ToString("d")}" +
Microsoft.NET.Build.Tasks (1)
CheckSdkVulnerabilities.cs (1)
73summary.EolDate.Value.ToString("yyyy-MM-dd"));
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\ZipDeploy\CreateZipFile.cs (1)
25string zipFileName = ProjectName + "-" + DateTime.Now.ToString("yyyyMMddHHmmssFFF") + ".zip";
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (2)
Macros\NowMacro.cs (2)
19string value = time.ToString(config.Format); 30string value = time.ToString(config.Format);
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1648dateTime.ToUniversalTime().ToString("r"));