Depends on how you want to get it. All DBMS have a function to get the current time. MySQL, you can use the NOW() function and that will fetch the time on the server. If you are using Servlets of anykind, you could write a simple servlet to get the current time on the Server. Hope that points you in the right direction.
posted 14 years ago
For an oracle database server: SELECT TO_CHAR( sysdate, 'HH24:MI:SS' ) FROM DUAL which, of course, returns a String result.