GetUtcDateTimeOffset() static private method

static private GetUtcDateTimeOffset ( DateTime dateTime ) : DateTimeOffset
dateTime DateTime
return DateTimeOffset
コード例 #1
0
ファイル: Directory.cs プロジェクト: wpsmith/corefx
        public static void SetLastAccessTimeUtc(String path, DateTime lastAccessTime)
        {
            String fullPath = PathHelpers.GetFullPathInternal(path);

            FileSystem.Current.SetLastAccessTime(fullPath, File.GetUtcDateTimeOffset(lastAccessTime), asDirectory: true);
        }
コード例 #2
0
        public static void SetLastWriteTimeUtc(String path, DateTime lastWriteTimeUtc)
        {
            String fullPath = Path.GetFullPath(path);

            FileSystem.Current.SetLastWriteTime(fullPath, File.GetUtcDateTimeOffset(lastWriteTimeUtc), asDirectory: true);
        }
コード例 #3
0
        public static void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc)
        {
            string fullPath = Path.GetFullPath(path);

            FileSystem.SetLastAccessTime(fullPath, File.GetUtcDateTimeOffset(lastAccessTimeUtc), asDirectory: true);
        }
コード例 #4
0
        public static void SetCreationTimeUtc(string path, DateTime creationTimeUtc)
        {
            string fullPath = Path.GetFullPath(path);

            FileSystem.SetCreationTime(fullPath, File.GetUtcDateTimeOffset(creationTimeUtc), asDirectory: true);
        }
コード例 #5
0
        public static void SetCreationTimeUtc(String path, DateTime creationTimeUtc)
        {
            String fullPath = PathHelpers.GetFullPathInternal(path);

            FileSystem.Current.SetCreationTime(fullPath, File.GetUtcDateTimeOffset(creationTimeUtc), asDirectory: true);
        }