Exemplo n.º 1
0
        private void bgwTime_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            BigTime now = BigTime.UtcNow;

            lblCurrentUnixTime.Text = now.ToUnixTime().ToString();

            lblCurrentUtcTime.Text = now.ToString();
            lblInternetTime.Text   = now.ToInternetTimeString();
        }
Exemplo n.º 2
0
        private void RefreshView()
        {
            txtLocalTime.Text    = _time.ToLocalTime().ToString();
            txtUnixTime.Text     = _time.ToUnixTime().ToString();
            txtUtcTime.Text      = _time.ToString();
            txtInternetTime.Text = _time.ToInternetTimeString();

            if (cboTimeZone.SelectedIndex >= 0)
            {
                txtCustomTime.Text = _time.ToLocalTime(((TimeZoneInfo)cboTimeZone.SelectedItem).BaseUtcOffset).ToString();
            }
        }