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

HtmlHelper::time() #4

Closed
ProLoser opened this issue May 22, 2011 · 1 comment
Closed

HtmlHelper::time() #4

ProLoser opened this issue May 22, 2011 · 1 comment

Comments

@ProLoser
Copy link
Owner

Review this document and scroll down to the tag documentation. The tag has 2 unique attributes, and it would be very helpful to facilitate the developer in creating this. We will probably want to make the first argument a custom-passable string to use as the text-content and make the second (or an option) the date-time attribute. Of course, pubdate should be a boolean option too.

One of the features of the method would be to (optionally) attempt to convert the text (first argument) to a timestamp using strtotime() and then adding it as the attribute. If the attribute is passed, a possible benefit would be different conversion options that can be used to help generate the timestamp.

@ProLoser
Copy link
Owner Author

Added this function and tested. Although it could use a little more improvement to be easily understandable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant