當前位置: 首頁>>代碼示例>>C#>>正文


C# Utilities.Rfc3389DateTime類代碼示例

本文整理匯總了C#中UfXtract.Utilities.Rfc3389DateTime的典型用法代碼示例。如果您正苦於以下問題:C# Rfc3389DateTime類的具體用法?C# Rfc3389DateTime怎麽用?C# Rfc3389DateTime使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Rfc3389DateTime類屬於UfXtract.Utilities命名空間,在下文中一共展示了Rfc3389DateTime類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Test_03

 public void Test_03()
 {
     // vcard[0].rev
     string test = nodes.GetNameByPosition("vcard", 0).Nodes["rev"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("2008-01-01T13:45:00").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "Should find rev value even if class attribute has multiple values" );
 }
開發者ID:adampax,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCard_5.cs

示例2: Test_02

 public void Test_02()
 {
     // vevent[0].dtend
     string test = nodes.GetNameByPosition("vevent", 0).Nodes["dtend"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("2009-06-26T22:12:34").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "With the value class pattern the results should contain a time" );
 }
開發者ID:adampax,項目名稱:UfXtract,代碼行數:8,代碼來源:test_value_dt_test_YYYY_MM_DD__H_MM_SSpm_EE_NN_UUpm.cs

示例3: Test_04

 public void Test_04()
 {
     // vevent[3].dtstart
     string test = nodes.GetNameByPosition("vevent", 3).Nodes["dtstart"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("2007-05-01T21:30").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "Should find a date from text node - Year, month, day and time");
 }
開發者ID:danielbcorreia,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCalendar_6.cs

示例4: Test_01

 public void Test_01()
 {
     // vevent[0].dtstart
     string test = nodes.GetNameByPosition("vevent", 0).Nodes["dtstart"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("2007").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "Should find a date from text node - Year");
 }
開發者ID:danielbcorreia,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCalendar_6.cs

示例5: Test_03

 public void Test_03()
 {
     // vcard[2].rev
     string test = nodes.GetNameByPosition("vcard", 2).Nodes["rev"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("20070501T1130").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "Should find a date from text node - ISO standard date format" );
 }
開發者ID:adampax,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCard_16.cs

示例6: Test_03

 public void Test_03()
 {
     // vcard[0].bday
     string test = nodes.GetNameByPosition("vcard", 0).Nodes["bday"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("2000-01-01T00:00:00-0800").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "The bday (birthday) is a singular value");
 }
開發者ID:danielbcorreia,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCard_1.cs

示例7: Test_05

 public void Test_05()
 {
     // vcard[4].rev
     string test = nodes.GetNameByPosition("vcard", 4).Nodes["rev"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("2007-05-01T21:30Z").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "Should find a date from text node - UTC Year, month, day and time" );
 }
開發者ID:adampax,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCard_15.cs

示例8: Test_01

 public void Test_01()
 {
     // vevent[0].dtstart
     string test = nodes.GetNameByPosition("vevent", 0).Nodes["dtstart"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("2009-06-05T20:00").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "With the value class pattern the results should contain a date and time" );
 }
開發者ID:adampax,項目名稱:UfXtract,代碼行數:8,代碼來源:test_value_dt_test_abbr_YYYY_MM_DD_abbr_HH_MM.cs

示例9: Test_04

 public void Test_04()
 {
     // vevent[0].dtend
     string test = nodes.GetNameByPosition("vevent", 0).Nodes["dtend"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("2007-09-09").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "The dtend is a singular value");
 }
開發者ID:danielbcorreia,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCalendar_1.cs

示例10: Test_04

 public void Test_04()
 {
     // vevent[3].dtstart
     string test = nodes.GetNameByPosition("vevent", 3).Nodes["dtstart"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("20070501T113015").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "Should find a date from text node - ISO standard date format" );
 }
開發者ID:danielbcorreia,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCalendar_7.cs

示例11: Test_02

 public void Test_02()
 {
     // vevent[1].dtstart
     string test = nodes.GetNameByPosition("vevent", 1).Nodes["dtstart"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("20080121").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "Should find a date from text node - ISO extended date format" );
 }
開發者ID:danielbcorreia,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCalendar_7.cs

示例12: Test_06

 public void Test_06()
 {
     // vcard[5].bday
     string test = nodes.GetNameByPosition("vcard", 5).Nodes["bday"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("2007-05-01T21:30+08:00").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "The bday or birthday from a HTML5 time element" );
 }
開發者ID:adampax,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCard_22.cs

示例13: Test_05

 public void Test_05()
 {
     // vevent[3].dtstart
     string test = nodes.GetNameByPosition("vevent", 3).Nodes["dtstart"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("2007-05-01").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "The dtstart from a HTML5 time element" );
 }
開發者ID:danielbcorreia,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCalendar_14.cs

示例14: Test_04

 public void Test_04()
 {
     // vevent[2].dtend
     string test = nodes.GetNameByPosition("vevent", 2).Nodes["dtend"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("2008-08-18T16:00:00-01").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "The dtend from a HTML5 time element" );
 }
開發者ID:danielbcorreia,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hCalendar_14.cs

示例15: Test_03

 public void Test_03()
 {
     // hresume[0].education[0].dtend
     string test = nodes.GetNameByPosition("hresume", 0).Nodes.GetNameByPosition("education", 0).Nodes["dtend"].Value;
     string testDateTime = new Rfc3389DateTime(test).ToString();
     string resultDateTime = new Rfc3389DateTime("1992").ToString();
     Assert.That(testDateTime, Is.EqualTo(resultDateTime), "The dtend value from hCalendar" );
 }
開發者ID:adampax,項目名稱:UfXtract,代碼行數:8,代碼來源:test_hResume_4.cs


注:本文中的UfXtract.Utilities.Rfc3389DateTime類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。