1.2 C
New York
Wednesday, December 25, 2024

The best way to Set Date Time from Mac Command Line


Engaged on an online extension that ships to an app retailer and is not instantly modifiable, like a web site, might be troublesome. Since you can’t instantly deploy updates, you generally have to bake in hardcoded date-based logic. Testing future dates might be troublesome if you do not know how one can rapidly change the date in your native machine.

To vary the present date in your Mac, execute the next from command line:

# Date Format:  MMDDYYYY
sudo date -I 06142024

This command doesn’t modify time, solely the present date. Utilizing the identical command to reset to present date is simple as properly!

  • Designing for Simplicity

    Earlier than we get began, it is value me spending a short second introducing myself to you. My title is Mark (or @integralist if Twitter occurs to be your communication instrument of alternative) and I at the moment work for BBC Information in London England as a principal engineer/tech…

  • 5 More HTML5 APIs You Didn’t Know Existed

    The HTML5 revolution has supplied us some superior JavaScript and HTML APIs.  Some are APIs we knew we have wanted for years, others are innovative cellular and desktop helpers.  No matter API power or objective, something to assist us higher do our job is a…


Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles