Same date in different time zone

Here’s how you could do what you are asking: // get a moment representing the current time var now = moment(); // create a new moment based on the original one var another = now.clone(); // change the offset of the new moment – passing true to keep the local time another.utcOffset(‘+05:30’, true); // log … Read more

Show modification (new and edited files) since a given date

Open the Source Control Explorer in Visual studio (View->Other Windows->Source Control Explorer), and select the top folder for your project. Then right-click and view history. This will show all check-ins for all code in this folder ordered by date. Then select two dates from the list of check-ins, right click and choose “Compare”. For example … Read more

Gnuplot date/time in x axis

Gnuplot doesn’t actually expect time data to be in quotes, so you have to tell it: set timefmt ‘”%Y-%m-%d %H:%M:%S”‘ You can put the double quotes inside single quotes as I did here, or escape the quotes: set timefmt “\”%Y-%m-%d %H:%M:%S\”” the same applies to your xrange specification: set xrange [‘”2013-07-21 16:00″‘:'”2013-07-22 16:00″‘] If you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)