예제 #1
0
		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()));
		}
예제 #2
0
		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);
		}
예제 #3
0
		TITANIUM_FUNCTION(File, modificationTimestamp)
		{
			return get_context().CreateNumber(static_cast<double>(modificationTimestamp().count()));
		}