Been tinkering with cosmos for a few days now. It says the TTL works the same as mongos does but clearly it doesn't. It works fine with an int32. But it disregards the date completely.
For reference I have the index setup on the "_ts" field and have the expireInSeconds set to -1. Then I give each document its own ttl field for however long I want them to stick around.
Since the int system does work, I went ahead and created stuff for turning future dates into seconds, and that works completely fine. So my other question would be, is it okay to use the ttl for seconds that very far away. I may want documents to auto expire after a month. And that's a lot of seconds for it to figure out on the fly. There also may be thousands of documents in this collection at any given time with all different ttls.