Little refactorization. static:: becomes self:: and DRY on DateTime

edition|creation