Ejemplo n.º 1
0
        public void TimeInstancePropertiesAndMethods()
        {
            Assert.DoesNotThrow(() =>
            {
                var now       = Datetime.now().time();
                var prevHours = now.addHours(-3);
                Assert.AreNotEqual(now, prevHours);

                var nextMinutes = now.addMinutes(15);
                Assert.AreNotEqual(now, nextMinutes);

                var prevSeconds = now.addSeconds(-30);
                Assert.AreNotEqual(now, prevSeconds);

                var nextMillis = now.addMilliseconds(534);
                Assert.AreNotEqual(now, nextMillis);

                var now2 = Datetime.newInstance(Date.today(), now).time();
                Assert.AreEqual(now, now2);

                var hash1 = now.hashCode();
                var hash2 = now2.hashCode();
                Assert.AreEqual(hash1, hash2);
                Assert.NotNull(now.toString());
            });
        }
        public string GetNote()
        {
            string s = "";

            if (Type == NoticeType.UploadDone)
            {
                s = string.Format("{0}: {1}", FullPath, Note);
            }
            if (Type == NoticeType.AddFileDone)
            {
                s = string.Format("{0}: {1} files added.", FullPath, JobDone);
            }
            if (Type == NoticeType.UploadException || Type == NoticeType.Exception)
            {
                s = string.Format("{0}: {1}", FullPath, Note);
            }

            if (Type == NoticeType.Upload)
            {
                s = string.Format("{0}: {1} {2}/{3} - {4}%", FullPath, Note, JobDone, JobTotal, Percentage);
            }

            if (Type == NoticeType.AddFile)
            {
                s = string.Format("{0}: {1} files", FullPath, JobDone);
            }

            if (Type == NoticeType.DownloadDone)
            {
                s = string.Format("{0}: {1}", FullPath, Note);
            }

            s = Datetime.ToString() + " " + s;
            return(s);
        }
Ejemplo n.º 3
0
        public Cliente(string nome, Datetime nascimento)
        {
            Nome       = nome;
            Nascimento = nascimento;

            // Nascimento = new Datetime(2010, 10, 10);
        }
Ejemplo n.º 4
0
        public void DatetimeInstancePropertiesAndMethods()
        {
            Assert.DoesNotThrow(() =>
            {
                var now      = Datetime.now();
                var tomorrow = now.addDays(1);
                Assert.AreNotEqual(now, tomorrow);
                Assert.False(now.isSameDay(tomorrow));

                var nowAgain = Datetime.newInstance(now.date(), now.time());
                Assert.AreEqual(now, nowAgain);

                var hash1 = now.hashCode();
                var hash2 = nowAgain.hashCode();
                Assert.AreEqual(hash1, hash2);

                var prevMonth = now.addMonths(-1);
                Assert.AreNotEqual(now, prevMonth);

                var nextYears = now.addYears(10);
                Assert.AreNotEqual(now, nextYears);

                var prevHours = now.addHours(-3);
                Assert.AreNotEqual(now, prevHours);

                var nextMinutes = now.addMinutes(15);
                Assert.AreNotEqual(now, nextMinutes);

                var prevSeconds = now.addSeconds(-30);
                Assert.AreNotEqual(now, prevSeconds);
                Assert.NotNull(now.toString());
            });
        }
    public void CreateEvent()
    {
        Event    ev = new Event(EventViewModel._id, EventViewModel._name, EventViewModel._descripition, EventViewModel._place, EventViewModel._date, EventViewModel._time, EventViewModel._date, EventViewModel._time);
        Datetime dt = DateTimeConverter.DateTimeOffsetAndTimeSetToDateTime(EventViewModel._date, EventViewModel._time);

        EventViewModel.catalogSingleton._events.AddEvent(ev);
    }
Ejemplo n.º 6
0
        private void PopulateCollections(ObservableCollection <object> datetime)
        {
            //Populate Date
            int noofdays = DateTime.DaysInMonth(DateTime.Now.Date.Year, DateTime.Now.Date.Month);

            for (int i = 1; i <= noofdays; i++)
            {
                string date = string.Empty;
                if (i != DateTime.Now.Date.Day)
                {
                    DayOfWeek name = new DateTime(DateTime.Now.Date.Year, DateTime.Now.Date.Month, i).DayOfWeek;

                    date  = name.ToString().Substring(0, 3) + " ";
                    date += CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(DateTime.Now.Date.Month).Substring(0, 3) + " ";

                    if (i < 10)
                    {
                        date += "0" + i.ToString();
                    }
                    else
                    {
                        date += i.ToString();
                    }
                }
                else
                {
                    date = "Today";
                }
                //Populate Day with Month
                Date.Add(date);
            }

            //Populate Hour
            for (int i = 1; i <= 12; i++)
            {
                Hour.Add(i.ToString());
            }
            //Populate Minute
            for (int j = 0; j < 60; j++)
            {
                if (j < 10)
                {
                    Minute.Add("0" + j);
                }
                else
                {
                    Minute.Add(j.ToString());
                }
            }

            //Populate Format
            Format.Add("AM");
            Format.Add("PM");

            Datetime.Add(Date);
            Datetime.Add(Hour);
            Datetime.Add(Minute);
            Datetime.Add(Format);
        }
Ejemplo n.º 7
0
 public static int GetQuarter(Datetime date)
 {
     if (date >= beginningOfQuarter1 && date < endOfQuarter1)
     {
         return(1);
     }
     else
     {
 public void OnMessage(long threadId,
                       TraceLevel level,
                       Datetime dateTime,
                       String
                       loggerName,
                       String message)
 {
     System.Console.WriteLine(dateTime + "  " + loggerName
                              + " [" + level.ToString() + "] Thread ID = "
                              + threadId + " " + message);
 }
Ejemplo n.º 9
0
        internal MarketMessageSubscriptionData(Subscription sub, Dictionary <string, object> fields) : base(new Name("MarketDataEvents"), sub.CorrelationID, null)
        {
            this._fields = new Dictionary <string, Element>();
            foreach (var item in fields)
            {
                Element elm = null;
                if (item.Value is double)
                {
                    elm = new MarketElementDouble(item.Key, (double)item.Value);
                }

                else if (item.Value is Datetime)
                {
                    Datetime temp = (Datetime)item.Value;

                    bool isDate     = temp.HasParts(Datetime.DATE);
                    bool isTime     = temp.HasParts(Datetime.TIME);
                    bool isDatetime = isDate && isTime;

                    if (isDatetime)
                    {
                        elm = new MarketElementDatetime(item.Key, temp.ToSystemDateTime());
                    }
                    else if (isDate)
                    {
                        elm = new MarketElementDate(item.Key, temp.ToSystemDateTime());
                    }
                    else if (isTime)
                    {
                        elm = new MarketElementTime(item.Key, temp.ToSystemDateTime());
                    }
                }

                else if (item.Value is int)
                {
                    elm = new MarketElementInt(item.Key, (int)item.Value);
                }
                else if (item.Value is string)
                {
                    elm = new MarketElementString(item.Key, (string)item.Value);
                }
                else if (item.Value is bool)
                {
                    elm = new MarketElementBool(item.Key, (bool)item.Value);
                }

                if (elm != null)
                {
                    this._fields.Add(item.Key, elm);
                }
            }
            this._security = sub.Security;
        }
Ejemplo n.º 10
0
 public void a_lengthy task()
 {
   int iteration = 0;
   while(iteration < 10)
   {
       Datetime saveNOW = Datetime.Now;
       Thread.sleep(10000);
       ProgressChanged(this, new MyEventArgs { SaveNow = saveNOW, IsFinished = false });
       iteration++
   }
   ProgressChanged(this, new MyEventArgs { SaveNow = null, IsFinished = true });
 }
Ejemplo n.º 11
0
 public Time getTimeValue()
 {
     if (value is long)
     {
         return(Datetime.newInstance((long)value).timeGmt());
     }
     if (value is string)
     {
         return(Datetime.valueOfGmt(((string)value).replace("T", " ")).timeGmt());
     }
     throw new InvalidConversionException("Only Long and String values can be converted to a Time: " + toStringPretty());
 }
Ejemplo n.º 12
0
 public Date getDateValue()
 {
     if (value is long)
     {
         return(Datetime.newInstance((long)value).dateGmt());
     }
     if (value is string)
     {
         return(Date.valueOf((string)value));
     }
     throw new InvalidConversionException("Only Long and String values can be converted to a Date: " + toStringPretty());
 }
Ejemplo n.º 13
0
        public void MethodOne()
        {
            Datetime dateTimeEmpty;

            dateTimeEmpty = Datetime.Now();
            Datetime        dateTimeInitilized = Datetime.Now();
            List <Datetime> dateTimeList       = new List <Datetime>();

            Datetime[] dateTimeArrary = new Datetime[5];
            string     name;

            name = "Jay";
        }
    void initDay()
    {
        Datetime baseTime = new Datetime(8, 0, 0);//8 o'clock

        for (int a = 0; a < 8; a++)
        {
            Appointments.Add(new Appointment(new Datetime(H, M, 0), new Timespan(1, 0, 0)));
            baseTime.Add(new timespan(0, 15, 0));   //Add 15 minutes
        }
        //Now you have a list of appointents where you can ask for all openings
        //of all appointments by simply asking
        var UnFilled = Appointments.Where(a => !a.isFilled());
        var Filled   = Appointments.Where(a => a.isFilled());
    }
Ejemplo n.º 15
0
        internal MessageMarketSubscriptionData(Subscription sub, Dictionary <string, object> fields) : base(new Name("MarketDataEvents"), sub.CorrelationID, null)
        {
            this._fields = new Dictionary <string, Element>();
            foreach (var item in fields)
            {
                Element elm = null;
                if (item.Value is double)
                {
                    elm = new ElementMarketDouble(item.Key, (double)item.Value);
                }

                else if (item.Value is Datetime)
                {
                    Datetime temp = (Datetime)item.Value;
                    switch (temp.DateTimeType)
                    {
                    case Datetime.DateTimeTypeEnum.date:
                        elm = new ElementMarketDate(item.Key, temp.ToSystemDateTime());
                        break;

                    case Datetime.DateTimeTypeEnum.time:
                        elm = new ElementMarketTime(item.Key, temp.ToSystemDateTime());
                        break;

                    case Datetime.DateTimeTypeEnum.both:
                        elm = new ElementMarketDatetime(item.Key, temp.ToSystemDateTime());
                        break;
                    }
                }

                else if (item.Value is int)
                {
                    elm = new ElementMarketInt(item.Key, (int)item.Value);
                }
                else if (item.Value is string)
                {
                    elm = new ElementMarketString(item.Key, (string)item.Value);
                }
                else if (item.Value is bool)
                {
                    elm = new ElementMarketBool(item.Key, (bool)item.Value);
                }

                if (elm != null)
                {
                    this._fields.Add(item.Key.ToUpper(), elm);
                }
            }
            this._security = sub.Security;
        }
Ejemplo n.º 16
0
        public void InsUpd(bool Ainsert, string Abez, string Acode, string Atext, int Aprgid, DateTime Adat)
        {
            int    rowsaffected = 0, udat;
            string sql;

            // set Country to this new one
            bez    = Abez;
            code   = Acode;
            text   = Atext;
            prg_id = Aprgid;

            tdb.Prg P = new tdb.Prg();
            P.Get(prg_id, ref rowsaffected);
            tdb.Season S = new tdb.Season();
            S.Get(P.ObjSaiid, ref rowsaffected);
            svon = S.ObjFrom;
            sbis = S.ObjTo;
            sai  = S.ObjBez;
            if (Adat < svon || Adat > sbis)
            {
                id = -2;
                return;
            }
            sai_id = P.ObjSaiid;
            udat   = Datetime.ToUnix(Adat);

            // Begin Trx
            BeginTrx();

            if (Ainsert)
            {
                // first get a new unique ID for bez and then sai
                id           = NewId("arrangement", "ARR_ID");
                rowsaffected = InsBez();
                rowsaffected = InsText();
                // insert
                sql          = String.Format("insert into tdbadmin.arrangement values({0}, '{1}', {2}, {3}, {4}, {5}, {6})", id, code, bez_id, udat, prg_id, text_id, sai_id);
                rowsaffected = DBcmd(sql);
            }
            else
            {
                rowsaffected = UpdBez();
                rowsaffected = UpdText();
                // update sai
                sql          = String.Format("update tdbadmin.arrangement set code = '{0}', textid = {1}, prg_id = {2}, a_dat = {3}, sai_id = {4} where arr_id = {5}", code, text_id, prg_id, udat, sai_id, id);
                rowsaffected = DBcmd(sql);
            }
            // commit
            Commit();
        }
Ejemplo n.º 17
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Code.Length != 0)
        {
            hash ^= Code.GetHashCode();
        }
        if (Open != 0F)
        {
            hash ^= Open.GetHashCode();
        }
        if (High != 0F)
        {
            hash ^= High.GetHashCode();
        }
        if (Low != 0F)
        {
            hash ^= Low.GetHashCode();
        }
        if (Close != 0F)
        {
            hash ^= Close.GetHashCode();
        }
        if (Volume != 0F)
        {
            hash ^= Volume.GetHashCode();
        }
        if (Date.Length != 0)
        {
            hash ^= Date.GetHashCode();
        }
        if (Amount != 0F)
        {
            hash ^= Amount.GetHashCode();
        }
        if (DateStamp.Length != 0)
        {
            hash ^= DateStamp.GetHashCode();
        }
        if (Datetime.Length != 0)
        {
            hash ^= Datetime.GetHashCode();
        }
        if (TimeStamp.Length != 0)
        {
            hash ^= TimeStamp.GetHashCode();
        }
        return(hash);
    }
Ejemplo n.º 18
0
        private IntradayTick(string contract, DateTime dateTimeStart, DateTime dateTimeEnd)
        {
            _dSecurity = contract;
            _startDate = dateTimeStart;
            _endDate = dateTimeEnd;
            _dStartDateTime = new Datetime(dateTimeStart.ToUniversalTime());
            _dEndDateTime = new Datetime(dateTimeEnd.ToUniversalTime());

            _dHost = "localhost";
            _dPort = 8194;
            _dEvents = new ArrayList {"TRADE"};
            _dConditionCodes = false;
            _shouldStop = false;
        }
Ejemplo n.º 19
0
        public void DatetimeImplicitConstructionFromDateTime()
        {
            Assert.DoesNotThrow(() =>
            {
                Datetime apexNow = global::System.DateTime.Now;
                global::System.DateTime systemNow = apexNow;
                Datetime anotherApexNow           = apexNow;
                Assert.AreEqual(apexNow, anotherApexNow);

                Datetime date1 = new global::System.DateTime(2018, 01, 18, 18, 27, 35);
                Datetime date2 = Datetime.newInstance(2018, 01, 18, 18, 27, 35);
                Assert.AreEqual(date1, date2);
            });
        }
Ejemplo n.º 20
0
        public override void Set(string name, Datetime elementValue)
        {
            var upper = name.ToUpper();

            switch (upper)
            {
            case "STARTDATETIME":
                this._dtStart = new RequestIntradayBarElementTime(name, elementValue);
                break;

            case "ENDDATETIME":
                this._dtEnd = new RequestIntradayBarElementTime(name, elementValue);
                break;
            }
        }
Ejemplo n.º 21
0
        //Tạo form
        void setupForm()
        {
            nmrHour.Maximum   = 24;
            nmrMinute.Maximum = 59;

            prgBattery.Maximum = 100;
            prgBattery.Minimum = 0;

            prgBattery.Value        = Battery.getInstant().getBatteryLifePercent();
            lblStateBattery.Text    = Battery.getInstant().getBatteryStatus();
            lblCapacityBattery.Text = Battery.getInstant().getPercentBattery();
            lblStateNetwork.Text    = Network.getInstant().getStateInternet();

            lblDatetime.Text = Datetime.getInstant().getTime();
        }
        public ContactCreateRequestHeader(Entities.DataObjects.ContactCreateClientRequest request)
        {
            var datetime3 = new Datetime()
            {
                Year  = DateTime.Now.Year.ToString(CultureInfo.InvariantCulture),
                Month = DateTime.Now.Month.ToString(CultureInfo.InvariantCulture),
                Day   = DateTime.Now.Day.ToString(CultureInfo.InvariantCulture)
            };

            Datetime      = datetime3;
            PartnerID     = request.AccountNumber;
            SalesOrgID    = request.SalesAreaInfo.SalesOrgId;
            DivisionID    = request.SalesAreaInfo.DivisionId;
            DistChannelID = request.SalesAreaInfo.DistChannelId;
        }
Ejemplo n.º 23
0
        private void PickDay(Datetime obj)
        {
            if (obj.IsSelected)
            {
                return;
            }

            var datetimeSelected = Datetimes.Where(d => d.IsSelected).FirstOrDefault();

            if (datetimeSelected != null)
            {
                datetimeSelected.IsSelected = false;
            }
            obj.IsSelected = true;
        }
 public Msg1RecoveryExample()
 {
     d_port        = 8194;
     d_hosts       = new ArrayList();
     d_startType   = SERIAL;
     d_startSerial = 0;
     d_endType     = TIME;
     d_endTime     = new Datetime(DateTime.Now);
     d_filter      = FilterChoiceType.LAST_UPDATE_ONLY;
     d_eid         = 0;
     d_eidProvided = false;
     d_requestType = STATUS_INFO;
     d_authOption  = "LOGON";
     d_dsName      = "";
     d_name        = "";
 }
Ejemplo n.º 25
0
        public void TimeStaticPropertiesAndMethods()
        {
            Assert.DoesNotThrow(() =>
            {
                var now    = Datetime.now().time();
                var notNow = Time.newInstance((now.hour() + 1) % 24,
                                              (now.minute() + 5) % 60, now.second(), now.millisecond());
                Assert.AreNotEqual(now, notNow);

                var then = Time.newInstance(12, 11, 10, 9);
                Assert.AreEqual(12, then.hour());
                Assert.AreEqual(11, then.minute());
                Assert.AreEqual(10, then.second());
                Assert.AreEqual(9, then.millisecond());
            });
        }
Ejemplo n.º 26
0
        public override void Set(string name, Datetime elementValue)
        {
            switch (name)
            {
            case "startDateTime":
                this._timeStart = new IntradayTickRequestElementTime(name, elementValue);
                break;

            case "endDateTime":
                this._timeEnd = new IntradayTickRequestElementTime(name, elementValue);
                break;

            default:
                throw new ArgumentException("Names are case-sensitive");
            }
        }
Ejemplo n.º 27
0
        public override void Set(string name, Datetime elementValue)
        {
            switch (name)
            {
            case "startDateTime":
                this._dtStart = new IntradayBarRequestElementTime(name, elementValue);
                break;

            case "endDateTime":
                this._dtEnd = new IntradayBarRequestElementTime(name, elementValue);
                break;

            default:
                throw new ArgumentException("name not recognized.  case-sensitive.");
            }
        }
Ejemplo n.º 28
0
        public void InsUpd(bool Ainsert, string Abez, string Atext, int Aparentid, string Acode, int Asupid, int Aofftype, DateTime Aduration, int Aactid, int Afromcity, int Atocity, int Aorder, string Alocation)
        {
            int    udat, rowsaffected = 0;
            string sql;

            // set to new one
            bez      = Abez;
            text     = Atext;
            code     = Acode;
            parentid = Aparentid;
            supid    = Asupid;
            fromcity = Afromcity;
            tocity   = Atocity;
            duration = Aduration;
            udat     = Datetime.ToUnix(Aduration);
            order    = Aorder;
            location = Alocation;
            offtype  = Aofftype;
            actid    = Aactid;

            // Begin Trx
            BeginTrx();

            if (Ainsert)
            {
                // first get a new unique ID for bez and then sai
                id           = NewId("dienst_angebot", "DLA_ID");
                rowsaffected = InsBez();
                rowsaffected = InsText();
                // insert
                sql = String.Format("insert into tdbadmin.dienst_angebot values({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {12})",
                                    id, code, parentid, order, supid, bez_id, actid, location, offtype, udat, text_id, fromcity, tocity);
                rowsaffected = DBcmd(sql);
            }
            else
            {
                rowsaffected = UpdBez();
                rowsaffected = UpdText();
                // update sai
                sql = String.Format("update tdbadmin.dienst_angebot set code = {0}, h_dla_id = {1}, ord = {2}, dlt_id = {3}, akt_id = {4}, ort = {5}, art_id = {6}, art_id = {7}, dau = {8}, textid = {9}, von = {10}, nach = {11} where dla_id = {12}",
                                    code, parentid, order, supid, actid, location, offtype, udat, text_id, fromcity, tocity, id);
                rowsaffected = DBcmd(sql);
            }
            // commit
            Commit();
        }
Ejemplo n.º 29
0
        //Đổi ngày giờ
        private void btnChangeDateTime_Click(object sender, EventArgs e)
        {
            short year   = short.Parse(dtp.Value.Date.Year.ToString());
            short month  = short.Parse(dtp.Value.Date.Month.ToString());
            short day    = short.Parse(dtp.Value.Date.Day.ToString());
            short hour   = short.Parse(nmrHour.Value.ToString());
            short minute = short.Parse(nmrMinute.Value.ToString());

            try
            {
                Datetime.getInstant().setTime(year, month, day, hour, minute);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 30
0
 private void _read()
 {
     _lenExtAttrRec     = m_io.ReadU1();
     _lbaExtent         = new U4bi(m_io, this, m_root);
     _sizeExtent        = new U4bi(m_io, this, m_root);
     _datetime          = new Datetime(m_io, this, m_root);
     _fileFlags         = m_io.ReadU1();
     _fileUnitSize      = m_io.ReadU1();
     _interleaveGapSize = m_io.ReadU1();
     _volSeqNum         = new U2bi(m_io, this, m_root);
     _lenFileName       = m_io.ReadU1();
     _fileName          = System.Text.Encoding.GetEncoding("UTF-8").GetString(m_io.ReadBytes(LenFileName));
     if (KaitaiStream.Mod(LenFileName, 2) == 0)
     {
         _padding = m_io.ReadU1();
     }
     _rest = m_io.ReadBytesFull();
 }
Ejemplo n.º 31
0
        static void testGetDatetimeValue()
        {
            JSONParse parser = new JSONParse("\"2011-03-22T13:01:23\"");

            System.assertEquals(Datetime.newInstanceGmt(2011, 3, 22, 13, 1, 23), parser.getDatetimeValue());
            parser = new JSONParse("1538783039073");
            System.assertEquals(Datetime.newInstanceGmt(2018, 10, 05, 23, 43, 59), parser.getDatetimeValue());
            try
            {
                parser = new JSONParse("[1,2,3]");
                parser.getDatetimeValue();
                System.assert(false, "Node is not a valid Datetime, should have seen an exception about that.");
            }
            catch (JSONParse.InvalidConversionException e)
            {
                System.assertEquals("Only Long and String values can be converted to a Datetime: [ 1, 2, 3 ]", e.getMessage());
            }
        }
 internal RequestIntradayBarElementTime(string elementName, Datetime date)
     : this(elementName, date.ToSystemDateTime())
 {
     this._instance = date.ToSystemDateTime();
 }
Ejemplo n.º 33
0
        public static object MarketDataFromFieldName(string fieldName)
        {
            object result;
            string upper = fieldName.ToUpper();

            if (upper.Contains("TIME"))
                result = new Datetime(DateTime.Now.AddMinutes(-1d * RandomDataGenerator._random.NextDouble() * 100d), Datetime.DateTimeTypeEnum.time);
            else if (upper.Contains("DATE"))
                result = new Datetime(DateTime.Now.AddDays(-1d * RandomDataGenerator._random.NextDouble() * 100d), Datetime.DateTimeTypeEnum.date);
            else
                result = RandomDataGenerator.RandomDouble();

            return result;
        }
 internal RequestHistoricElementDate(string elementName, Datetime date)
     : this(elementName, date.ToSystemDateTime())
 {
     this._instance = date.ToSystemDateTime();
 }
Ejemplo n.º 35
0
 internal ElementReferenceDateTime(string name, DateTime value)
 {
     this._name = name;
     this._value = new Datetime(value, Datetime.DateTimeTypeEnum.date);
 }
Ejemplo n.º 36
0
 internal ElementHistoricDateTime(DateTime date)
 {
     this._date = new Datetime(date, Datetime.DateTimeTypeEnum.date);
 }
Ejemplo n.º 37
0
 public void OnMessage(long threadId,
     TraceLevel level,
     Datetime dateTime,
     String
     loggerName,
     String message)
 {
     Logger.Info(dateTime + "  " + loggerName
         + " [" + level + "] Thread ID = "
         + threadId + " " + message);
 }
Ejemplo n.º 38
0
 internal ElementMarketDatetime(string name, DateTime datetime)
 {
     this._name = name;
     this._datetime = new Datetime(datetime, Datetime.DateTimeTypeEnum.both);
 }
 internal ElementIntradayBarDateTime(DateTime date)
 {
     this._date = new Datetime(date, Datetime.DateTimeTypeEnum.both);
 }
Ejemplo n.º 40
0
 public override void Set(string name, Datetime elementValue)
 {
     var upper = name.ToUpper();
     switch (upper)
     {
         case "STARTDATETIME":
             this._timeStart = new RequestIntradayTickElementTime(name, elementValue);
             break;
         case "ENDDATETIME":
             this._timeEnd = new RequestIntradayTickElementTime(name, elementValue);
             break;
     }
 }
Ejemplo n.º 41
0
 internal ElementMarketTime(string name, DateTime time)
 {
     this._name = name;
     this._time = new Datetime(time, Datetime.DateTimeTypeEnum.time);
 }