Fan.Sys.TimeZone.fromStr C# (CSharp) Méthode

fromStr() public static méthode

public static fromStr ( string name ) : TimeZone
name string
Résultat TimeZone
        public static TimeZone fromStr(string name)
        {
            return fromStr(name, true);
        }

Same methods

TimeZone::fromStr ( string name, bool check ) : TimeZone

Usage Example

Exemple #1
0
 /** Get generic GMT offset where offset is in seconds */
 public static TimeZone fromGmtOffset(int offset)
 {
     if (offset == 0)
     {
         return(TimeZone.utc());
     }
     else
     {
         return(TimeZone.fromStr("GMT" + (offset < 0 ? ("+" + (-offset / 3600)) : ("-" + (offset / 3600)))));
     }
 }
All Usage Examples Of Fan.Sys.TimeZone::fromStr