TITANIUM_FUNCTION(File, modificationTimestamp) { const auto ctx = get_context(); ctx.JSEvaluateScript("Ti.API.warn('modificationTimestamp() has been deprecated in 7.2.0 in favor of modifiedAt() to avoid platform-differences for return type. modifiedAt() will return a Date object on all platforms.');"); return ctx.CreateNumber(static_cast<double>(modificationTimestamp().count())); }
TITANIUM_FUNCTION(File, modifiedAt) { const auto ctx = get_context(); const std::vector<JSValue> dateArg = { ctx.CreateNumber(static_cast<double>(modificationTimestamp().count())) }; return ctx.CreateDate(dateArg); }
TITANIUM_FUNCTION(File, modificationTimestamp) { return get_context().CreateNumber(static_cast<double>(modificationTimestamp().count())); }