making a four port outlet timer

well I have some library's for the shields and the rtc installed and uploaded and working after a bit of tinkering I "stole" some code to try and mod to fit my hardware and Im kind of learning how to address different libraries and use their functions... where i"m at right now is i have a DS3232rtc library installed and whe I go to adress datetime now ; Im recieving a 'DateTime' does not name a type error code... I"m assuming that datetime is a funtion that I am calling up from inside the library am I correct? If so does this mean that this function is not included in the library? if this is true I would find this kind of odd as this would be a very useful funtion to use with a rtc... how do I go about adding this function into the library and or fix this error code?

Thanks for the assistance I know this is allot of random questions but this seems to be how I learn best!!