1. local _ostime = Oxide.Core.Libraries.Time.GetCurrentTime ()

    Cannot figure out the proper namespace scope for this function. Anyone have any suggestions?

    Code:
    using System;namespace Oxide.Core.Libraries
    {
        public class Time : Library
        {
            private readonly static DateTime epoch;        public override bool IsGlobal
            {
                get
                {
                    return false;
                }
            }        static Time()
            {
                Time.epoch = new DateTime(1970, 1, 1);
            }        public Time()
            {
            }        [LibraryFunction("GetCurrentTime")]
            public DateTime GetCurrentTime()
            {
                return DateTime.UtcNow;
            }        [LibraryFunction("GetUnixTimestamp")]
            public uint GetUnixTimestamp()
            {
                return (uint)DateTime.UtcNow.Subtract(Time.epoch).TotalSeconds;
            }
        }
    }
     
  2. time.GetCurrentTime()
     
  3. worked perfectly - thanks for the second set of eyes. I tried that as well...but...I had upper T in time. Thanks again.