Error with unify code?

i got this code from unify

http://www.unifycommunity.com/wiki/index.php?title=SunLight

but i dont understand why im getting this error.... everything seems to be correct for me

Assets/Scripts/SunLight.cs(31,8): error CS0246: The type or namespace name `maingui' could not be found. Are you missing a using directive or an assembly reference?

All help is appreciated.

Looks like he posted code that depends on another script. His email address is in the code, you should probably contact him directly. Or you could just get rid of that 'maingui' stuff, and import the System stuff to get at the date/time directly. This may help: http://www.daniweb.com/code/snippet216441.html