Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Convert windows date modified timestamp on a file to UTC time ?

Posted on 2012-04-05
3
107 Views
Last Modified: 2015-06-03
Hello all.

I have a client who is requesting that a file that we serve to them (via FTP) to have the date modified time in UTC and not EDT.  I have searched and can't find an easy way to do this via command line or powershell.

Another potential item might be to append the UTC time to the actual filename itself.

Does anyone have any experience in doing either of these?

Thanks!
0
Comment
Question by:awsnoc
3 Comments
 
LVL 6

Accepted Solution

by:
wshark83 earned 167 total points
ID: 37812318
can you please clarify by what you mean "to have the date modified time in UTC and not EDT"

does the user want to see the modification time in utc in the explorer bar/FTP?

if that's the case then you would need to either set the system time of FTP in utc or as you mentioned add the utc time in the file name.............
0
 
LVL 6

Assisted Solution

by:Raquero
Raquero earned 167 total points
ID: 37812374
Point of order: NTFS uses UTC for timestamps. The displayed timestamps are translated to the client OS time zone settings.

Here is a detailed article that covers all things timestamp and has some examples of utilities to modify timestamps:

http://www.techrepublic.com/article/build-your-skills-learn-to-manipulate-file-time-stamps-in-windows/5034280
0
 
LVL 8

Assisted Solution

by:Brent Challis
Brent Challis earned 166 total points
ID: 37854375
There is a property of the files called LastWriteTimeUtc.  you could extract that from the file.  The following PowerShell line gets a directory listing to show you the difference between the two LastWriteTime properties.

dir c:\data\development\powershell | select Name,LastWriteTime,LastWriteTimeUtc | Out-GridView
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem: You created a new custom form in Outlook for your contacts (added fields, deleted fields, changed the layout of fields, whatever) and made it the default form for contacts. The good news is that all new contacts will utilize the new form. T…
This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question