modified registry & date_time & KBase_Test

1.format one line in registry.cpp
2.add conversion to other struct interface
3.add corresponding unittest
modified date_time

add overloaded comparison operators
date_time: add some format function declarations