[Mono-dev] Re: r54963 - trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms

Robert Jordan robertj at gmx.net
Mon Jan 2 13:51:11 EST 2006


Hi,

> Author: aolk
> Date: 2006-01-02 13:23:08 -0500 (Mon, 02 Jan 2006)
> New Revision: 54963
> 
> Modified:
>    trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
>    trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
> Log:
> 	* FileDialog.cs: Forgot too add __MonoCS__
> 
> 2006-01-02  Alexander Olk  <alex.olk at googlemail.com>
> 
>  							long seconds = 0;
> +							#if __MonoCS__
>  							Mono.Unix.Native.Syscall.time( out seconds );
> +							#endif

You may consider using a portable approach, like:

long seconds = (long) (DateTime.UtcNow - new DateTime(1970, 1, 
1)).TotalSeconds;

Regards,
Robert




More information about the Mono-devel-list mailing list