rose task env, rose prune: support new ISO 8601 cylc syntax

This closes #1267.

@matthewrmshin, please review.