Time
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gda_time_get_type ()" ) ]
[ Compact ]
public class Time
[ Compact ]
public class Time
Represents a time information.
Namespace: Gda
Package: libgda-6.0
Content:
Creation methods:
- public Time ()
Creates a new Time with time now local.
- public Time.from_date_time (DateTime dt)
Creates new instcne of Time from DateTime.
- public Time.from_values (ushort hour, ushort minute, ushort second, ulong fraction, long timezone)
Create new instance of Time from the provided values.
Methods:
- public Time copy ()
Create a copy of Time
- public void free ()
Free resources holded by the Time instance
- public ulong get_fraction ()
Extract fraction of seconds from the instance of Time
- public ushort get_hour ()
Get hours from the Time instance
- public ushort get_minute ()
Get minutes from the Time instance
- public ushort get_second ()
Get second component from Time
- public long get_timezone ()
Returns number of seconds to be added to UTC time.
- public TimeZone get_tz ()
Returns a TimeZone in use in this this.
- public void set_fraction (ulong fraction)
Set new value for the second fraction
- public void set_hour (ushort hour)
Set hour component to the Time instance.
- public void set_minute (ushort minute)
Set minutes to the Time instance
- public void set_second (ushort second)
Set second component
- public void set_timezone (long timezone)
Set timezone component for the instance of Time
- public string to_string ()
Creates a string representation of a Time in local time with the timezone designation.
- public string to_string_local ()
Creates a string representation of a Time in local time without timezone designation.
- public string to_string_utc ()
Creates a string representation of a Time in UTC time with time zone indication.
- public Time to_timezone (TimeZone ntz)
Translate this's to give timezone
- public Time to_utc ()
Change time zone to UTC.
- public bool valid ()
A time is always valid, so this method has been deprecated.