|
I'm caching files locally in my 3 tier app. To check whether to read the file from the local cache or from the server I compare file dates. I've found that there when converting file dates to TDateTime and viceversa there are inconsistencies and values...
Started by norgepaul on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Also some file systems do not have the same....
Functions like CompareDateTime can help.
Especially comparing for equality is a problem.
A TDateTime is actually a float and as all floating points you have rounding issues .
You are right about the rounding.
|
|
I don't think the, System.Collections.ObjectModel has any sort or order by capability.
I have a list of files and I'd like to sort by the file date.
Dim list AS System.Collections.ObjectModel.ReadOnlyCollection(Of String) list = My.Computer.FileSystem...
Started by Jeff O on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Using System.IO; public static void Main() { DirectoryInfo di = new DirectoryInfo("c:\\temp\\"); FileSystemInfo[] files = di.GetFileSystemInfos("*.mp3"); printFiles(files); Array.Sort(files, CompareFileByDate); printFiles(files); } public static int CompareFileByDate... .
|
|
We are a programming shop, but this i snot a programming question.
My boss has put an external HD on the network. It contains the 'home' folders for users on the network. He uses it to place VB projects that he wants me to work on.
But no matter what ...
Started by Marshall on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
Anyway, to try to debug this issue, when you modify the file, does the accessed date change?
You need to test your problem on the default ... .
I mean, come on.
First of all, if you are a 'programming shop', you should most definitely have version control .
|
Ask your Facebook Friends
|
Frequently I come across the following statements in C/C++ source code:
$Id: lzio.c,v 1.24 2003/03/20 16:00:56 roberto Exp $ $Id: file name, version, timestamp, creator Exp $
Have you got any idea which software produces those "signatures"?
Started by gio on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
SVN can grab these values on pre and post commit hooks... .
I've seen a few vim setups that will auto-magically populate these values .
Both RCS and CVS produce strings that look exactly like that .
Version control systems such as CVS can produce such tags .
|
|
I cant insert for using c# language DateTime.Now.ToString()
insert sqlserver in datatype datetime field
Started by monkey_boys on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You shouldnt have to perform ToString() in order to insert to an SQL server db
Your question didn't make a lot of sense, but I think you're looking for this:
DateTime.Now.ToString(string format)
That'll format the DateTime in the way you want it to .
|
|
Dear all,
I am trying to test how old ago a file was created (in secondes) with bash in a "if" statement. I need creation date, not modification.
Do you have any idea how to do this, without using a command like "find" with grep ?
Started by JeffPHP on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm afraid I cann't answer the question for creation time, but for last modification time you can use the following to get the epoch date , in seconds , since filename was last modified :
date --utc --reference=filename +%s
So you could then so something... .
|
|
I have been using picasa for quite a few years now, but have recently switched from windows to mac. For some reason the version I am now using imports the files with a fairly random file date. All the other dates are correct. When I view the file det
Started by tclgriffin on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at google):
My pictures are stored on an NFS mounted NAS but I wouldn't expect this to... .
I have the exact same issue, an arbitrary amount of pictures does have the correct date though .
The other possibly note worthy point is that the photos are stored in a NAS .
|
|
How to Include EXIF File Date and Time? I am using the 64bit version of Thumbnailer 10.1.0.4 on Windows 7, Service Pack 1.
I would like to output source HTML pages that include the I've clicked the "More Options" button from the main Thumbnailer screen...
Started by kc27 on
, 7 posts
by 2 people.
Answer Snippets (Read the full thread at smalleranimals):
Re: How to Include EXIF File Date and Time? Thanks for the fast reply EXIF File Date and....
Re: How to Include EXIF File Date and Time? To get the EXIF DateTime tag, use the Exif operator; 01-08-2012 at 04:19 PM .
|
|
Is it normal that the date and time of the log files are not correct?
My log files seem to have the "date created" set as the date the Sk was last connected to my pc.
Nick
Started by nickyd on
, 5 posts
by 3 people.
Answer Snippets (Read the full thread at helifreak):
Another example is the PC....
Because the SK720 does not have internal battery this is the best it can do .
The unit needs power to keep the clock running.
The time stamp of my log files are always the last time I clicked the Update button on the software .
|
|
My hard drive broke a few weeks ago. Fortunately I had backed up my files with Norton 360 V2 on an external USB hard drive. After installing a new hard drive I tried to restore all my files from the external backup with Norton. All the files were restored...
Started by Tapjuk on
, 6 posts
by 4 people.
Answer Snippets (Read the full thread at norton):
This of course is based on the situation where the files exist in their... .
I can confirm that files backed up from hard disk and saved to hard disk, and then restored have modification dates as the date and time or restoration, but the creation date remains .
|