Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    What does your date command look like, and what does the file look like? In other words, please post your exact input and command(s). Commented Sep 27, 2016 at 6:36
  • The key bit you're missing re: the bolded bit, is that's when using date to generate a date. So you can use LC_ALL=C TZ=UTC0 date ... to generate the string that you then put in the file you're going to parse with date -f datefile. Commented Mar 22, 2024 at 22:16