How to Set Date Time from Mac Command Line

Date:

Share post:

Working on a web extension that ships to an app store and isn’t immediately modifiable, like a website, can be difficult. Since you cannot immediately deploy updates, you sometimes need to bake in hardcoded date-based logic. Testing future dates can be difficult if you don’t know how to quickly change the date on your local machine.

To change the current date on your Mac, execute the following from command line:

# Date Format:  MMDDYYYY
sudo date -I 06142024

This command does not modify time, only the current date. Using the same command to reset to current date is easy as well!

Request Metrics real user monitoring
Request Metrics real user monitoring
Request Metrics real user monitoring
  • How to Create a Twitter Card
  • Create Namespaced Classes with MooTools

    Create Namespaced Classes with MooTools

    MooTools has always gotten a bit of grief for not inherently using and standardizing namespaced-based JavaScript classes like the Dojo Toolkit does.  Many developers create their classes as globals which is generally frowned up.  I mostly disagree with that stance, but each to their own.  In any event…

  • Fancy FAQs with jQuery Sliders

    Fancy FAQs with jQuery Sliders

    Frequently asked questions can be super boring, right? They don’t have to be! I’ve already shown you how to create fancy FAQs with MooTools — here’s how to create the same effect using jQuery. The HTML Simply a series of H3s and DIVs wrapper…

  • Create a CSS Flipping Animation

    Create a CSS Flipping Animation

    CSS animations are a lot of fun; the beauty of them is that through many simple properties, you can create anything from an elegant fade in to a WTF-Pixar-would-be-proud effect. One CSS effect somewhere in between is the CSS flip effect, whereby there’s…


Source link
spot_img

Related articles

A CISO playbook – Sophos News

The North Korean worker scheme has expanded into a global threat. Although it originally focused on U.S. technology...

RAID vs Non – RAID Storage: Difference and Comparison

The hidden cost of selecting the incorrect storage configuration can be devastating, as an eye-catching statistic suggests that...

Mobile Applications for Event Lead Capture

1. Introduction to Event Lead Capture Digitalization in Event Lead Capture Corporate events, trade shows, and conferences represent unique opportunities...

Jack Dorsey funds diVine, a Vine reboot that includes Vine’s video archive

As generative AI content starts to fill our social apps, a project to bring back Vine’s six-second looping...