Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stat format %Y is seconds since epoch and works on CentOS too #7

Merged
merged 1 commit into from
Nov 18, 2013

Conversation

chrisjbray
Copy link
Contributor

The previous stat command didn't work on my devserver, I tested this stat command on a CentOS 6 machine, and an Ubuntu Precise machine and it seemed to work in both places...

@DrGonzo65
Copy link
Owner

Yes, but does it work on Mac OS X? We run these from our local machines, atm.

@chrisjbray
Copy link
Contributor Author

Yeah, looks like it.

[chrisbray-mba:~] $ touch testfile
[chrisbray-mba:~] $ stat --format="%Y" testfile
1384796875

@DrGonzo65
Copy link
Owner

Not working on mine...
(pyenv)➜ ~ touch testfile
(pyenv)➜ ~ stat --format="%Y" testfile
stat: illegal option -- -
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]

DrGonzo65 added a commit that referenced this pull request Nov 18, 2013
stat format %Y is seconds since epoch and works on CentOS too
@DrGonzo65 DrGonzo65 merged commit e35b500 into DrGonzo65:master Nov 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants