Second() and Time() Function in MS Access

1. Second() Function :
In MS Access, the second() function returns the second part of the datetime. In this function the datetime will be passed as parameter and it will return the second part of the datetime. The returnred integer will be in the range of 0 to 59.

Syntax :

Second(time)

Example-1 :

SELECT Second(#12:28:45#);

Output –

45 

Example-2 :



SELECT Second(#14/09/2020 11:19:54 PM#);

Output –

54

2. Time() Function :
In the MS Access, The Time() function returns the current computer system time. In this function nothing will be passed and it will return the current time.

Syntax :

Time()

Example-1 :

SELECT Time() ;

Output –

10:56:47 AM

Example-2 :

SELECT Time() ;

Output –

10:57:36 AM
My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.