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

remove deprecated now() function #2

Merged
merged 1 commit into from
Jan 7, 2016
Merged

remove deprecated now() function #2

merged 1 commit into from
Jan 7, 2016

Conversation

LcpMarvel
Copy link
Contributor

@tony612
Copy link
Owner

tony612 commented Jan 7, 2016

How about just using :erlang.system_time for Erlang 18? http://www.erlang.org/doc/man/erlang.html#system_time-0

@LcpMarvel
Copy link
Contributor Author

Why? Just for Erlang 18?

@@ -57,7 +57,6 @@ defmodule Qiniu.Fop.Image do
HTTP.get image_url <> params
end

def watermark(type, image_url, text, opts \\ [])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good for generating the doc, so I think it's better to keep this :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will cause the CompileError.

@tony612
Copy link
Owner

tony612 commented Jan 7, 2016

Yes, so that we can get the timestamp more easily.

tony612 added a commit that referenced this pull request Jan 7, 2016
remove deprecated now() function
@tony612 tony612 merged commit 8a1b938 into tony612:master Jan 7, 2016
@tony612
Copy link
Owner

tony612 commented Jan 7, 2016

Thanks!

@LcpMarvel
Copy link
Contributor Author

:)

tony612 pushed a commit that referenced this pull request Jul 19, 2017
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.

None yet

2 participants