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

format time as RFC3339 #24

Closed
yene opened this issue Oct 10, 2016 · 2 comments
Closed

format time as RFC3339 #24

yene opened this issue Oct 10, 2016 · 2 comments

Comments

@yene
Copy link

yene commented Oct 10, 2016

I use gorram to print the current time, is it possible to format it as RFC3339?

@natefinch
Copy link
Owner

I am working on enabling using a text/template to format the output, which should enable you to do that.

@natefinch
Copy link
Owner

This now works, though it's not the shortest invocation ever:
$ gorram -t '{{.Format "2006-01-02T15:04:05Z07:00"}}' time Now
2016-10-11T09:05:40-04:00

(make sure to run at least once with -r to regenerate the cached script to get the new behavior)

@yene yene closed this as completed Oct 11, 2016
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

No branches or pull requests

2 participants