[Steem / piston] How to get the datetime of a comment / post?

in programming •  8 years ago 

I'm working on a little tool, for that I need to now the date/time when a particular comment was posted.

Can I get this info from a node via websockets/piston? If so how?

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  8 years ago (edited)

I got it:

post = steem.get_content(post_identifier)
created_timestamp = post.created

For some reason, post.created is not available when you get the post from the stream function:

for post in steem.stream_comments():
created = post.created <---- ERROR

I am not sure if that is a missing feature / bug in piston or just a limitation of the stream function.

@xeroc can you comment?

I have identified the bug .. Will be fixed in the next release or in develop shortly ..
thanks for reporting

Thanks man, you're a legend!