Lodash.js – now function
A simple Lodash.js example of the now function showing the millisconds passed since 01.01.1970.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="Tizen Angular.js example"/>
<title>Tizen lodash.js example</title>
<script src="js/lodash.min.js"></script>
</head>
<body>
<div id="mydiv">
</div>
<script>
var beforeDiv = document.getElementById('mydiv');
var data = _.now();
beforeDiv.innerHTML = "milliseconds passed since 1.01.1970: " + data;
</script>
</body>
</html>