add timestamp support function

1. timestamp default is false, compatible with previous version;
2. support true | false option;
3. support function;