Tags » Datetime

Date and time

Getting the current date and time:

from datetime import datetime
print now

This will print the current time for e.g.

2014-08-01 10:43:06.356313

For a different format: 46 more words


JSR-310 Java 8 Date Time Presentation at IL Java User Group

Yesterday I presented Java 8 Date Time new feature.

The presentation took place at the Israeli Java User Group meetup (ILJUG).

Here’s the presentation:



Convert .NET Date/Time Formats for JavaScript UI Controls

I recently had a project where I was using ASP.NET and C# to build an application that made use of JQuery Datepicker as well as a third-party… 301 more words


How to change the timezone on a Ubuntu server

A very simple and quick fix to a rather annoying (especially when searching log files!) issue, is changing the server timezone.

To check your the current date and time on your server, simply run: 40 more words




A typical problem I face is redundant code across projects. Whenever I see this happening I try to come up with a solution to… 273 more words


Pure CSS Clock

This is a analogue clock implemented purely using CSS & HTML.

Please visit full source code here

Alternate version (much simpler to understand).

I have my own implementation of another CSS clock different from the one linked above. 463 more words


Mock Current Date and Time in SQL Server

Occasionally, if you’re especially lucky, you’ll get into a situation where you have SQL procedures and functions that are so complicated that they require unit tests all of their own. 732 more words

Unit Testing