BBC BASIC for Windows
« FileTimeToSystemTime »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:55pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: FileTimeToSystemTime  (Read 1004 times)
Nanne
New Member
Image


member is offline

Avatar




PM


Posts: 9
xx FileTimeToSystemTime
« Thread started on: Nov 19th, 2012, 11:50am »

Hi,

I create a file (with openout) at 13:22:00.

When I ask properties in Windows then the creationtime, accestime and modificationtime are 13:22:00.

That is correct.

When I asc the file time with FileTimeToSystemTime I get 12:22:00.

How is that possible? I't a difference from one hour.

User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: FileTimeToSystemTime
« Reply #1 on: Nov 19th, 2012, 9:35pm »

on Nov 19th, 2012, 11:50am, Nanne wrote:
How is that possible? I't a difference from one hour.

Where do you live? The difference of one hour seems likely to be the difference between UTC and your local clock time (so it is, for example, what you would expect if you live in continental Europe rather than in the UK).

Using FileTimeToSystemTime will return the time in UTC; if you want it in local clock time you can use FileTimeToLocalFileTime before calling FileTimeToSystemTime.

Richard.
User IP Logged

Nanne
New Member
Image


member is offline

Avatar




PM


Posts: 9
xx Re: FileTimeToSystemTime
« Reply #2 on: Nov 19th, 2012, 10:08pm »

Hi Richard,

Thank you for your reply. I live in the Netherlands. And indeed I spend this day with searching the internet for a solution.
I have to convert the time to my local time. Yes I can do that with FiletTimeToLocalTime.
The problem is that I don't know how the syntax is. I have searched the apiviewer from jon ripley but the link (even on you site) doesn't work.
I hope that it will work tomorrow smiley

Nanne
User IP Logged

Nanne
New Member
Image


member is offline

Avatar




PM


Posts: 9
xx Re: FileTimeToSystemTime
« Reply #3 on: Nov 19th, 2012, 10:54pm »

Hi Richard,

With trial and error it works! (not the site but your hints)

Nanne
« Last Edit: Nov 19th, 2012, 10:55pm by Nanne » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls