var express = require('express');
var router = express.Router();
var moment = require('moment');

/* GET home page. */
router.get('/', function (req, res, next) {
//  res.render('index', { title: 'Express' });


//    var utc = 1502212611;
//    var m = moment.unix(utc).tz('Asia/Kolkata').format('YYYY-MM-DD HH:mm:ss');
//    console.log('Today Date ',m);
    console.log('Today Date is a ');

//    const ts = new Date().toLocaleString('en-US', {
//        timeZone: 'Asia/Calcutta'
//    });
////    let ts = Date.now();
//    let date_ob = new Date(ts);
//    let date = date_ob.getDate();
//    let month = date_ob.getMonth() + 1;
//    let year = date_ob.getFullYear();
//
//// current hours
//    let hours = date_ob.getHours();
//// current minutes
//    let minutes = date_ob.getMinutes();
//// current seconds
//    let seconds = date_ob.getSeconds();
//    console.log(year + "-" + month + "-" + date + " " + hours + ":" + minutes + ":" + seconds);
//
//    var today_dttime = year + "-" + month + "-" + date + " " + hours + ":" + minutes + ":" + seconds;
//
//
//
//    var today_dt = year + "-" + month + "-" + date;
//
//    console.log('date_ob ' + date_ob);
//    console.log('today_dttime ' + today_dttime);
//    console.log('today_dt ' + today_dt);


    res.render('login', {title: 'Express'});
});

module.exports = router;