CryptoBot 0 Posted January 23, 2019 Report Share Posted January 23, 2019 Hello fellow botters, I got a newbie question. Is it possible to convert system date/time to something like Unix epoch (f.x. 1548209365)? I want to use this to save a file with the unix date/time as the filename. Can you share your code with me? Thanks! Quote Link to post Share on other sites
bestmacros 60 Posted January 23, 2019 Report Share Posted January 23, 2019 you need a plugin for that:https://network.ubotstudio.com/forum/index.php/topic/13665-free-plugin-datetime-manipulation/ or you can play with javascript:https://stackoverflow.com/questions/9873197/convert-date-to-timestamp-in-javascript Quote Link to post Share on other sites
HelloInsomnia 1103 Posted January 23, 2019 Report Share Posted January 23, 2019 Datetime Manipulation Plugin is great but it will give you Unix time for the time you input, so if you use the $date function then it will be Unix time in YOUR timezone. If you need actual UTC time look for an API there's some out there and super easy to scrape. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted January 24, 2019 Report Share Posted January 24, 2019 yup datetime plugin http://ubotdev.com/free-plugin-datetime-manipualtion Quote Link to post Share on other sites
CryptoBot 0 Posted January 24, 2019 Author Report Share Posted January 24, 2019 thanks guys, much appreciated! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.