Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6605439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:17:03+00:00 2026-05-25T19:17:03+00:00

I tried utime() on both Windows (XP) and Linux. On Windows I get an

  • 0

I tried utime() on both Windows (XP) and Linux. On Windows I get an EACCES error, on Linux I don’t get any error (but the time is not changed). My utime() code is fine, because it works on files. I could not find if utime() is supposed to work on directories or not, but if not, how can I change the time and date?

I am looking for a solution that would ideally work for both Windows and Linux, but if not, I can always use some OS specific code.

[edit]
It seems that utime does indeed work on Linux, but it didn’t appear to work for me because I was moving files in that directory, and that updated the time stamp to the current time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:17:04+00:00Added an answer on May 25, 2026 at 7:17 pm

    For Windows you can use the SetFileTime which also works for directories.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Tried examples from 'php.net' but don't understand what's the problem. Any suggestions? <?php $_SESSION['test']
Tried many ways based on other questions asked here but could not get a
Tried everything. This UPDATE don't work. No error or something - it just not
Tried a bunch of things but I can't get it to work consistently amid
Tried to reuse Sum but got this error: cannot resolve method Sum how can
Tried : var a=10.3; var b=2.3; alert(a+b); but I get 12.600000000000001 . I know
Tried this in as connection string connectionString=Server=.\SQLEXPRESS; AttachDbFilename=E:\Database\dnn49.mdf;Database=dnn49; Trusted_Connection=Yes; but i get an error
tried to calculate sun lat and long using PyEphem but not matching with ephemeris
Tried googling, but cannot really find an answer. Having a Windows Form with a
tried /[^fF\d+\s+]?[AF]?[\s+]?(\d+(\.\d{1,2})?-\d+(\.\d{1,2})?)/ want to match: AF11-16 AF 11-16 11-16 16.5-100 but do not match:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.