Click here to Skip to main content
15,913,570 members
Home / Discussions / C#
   

C#

 
QuestionGetServices permissions error with Windows2003 SP1 Pin
Rendili11-May-06 3:07
Rendili11-May-06 3:07 
AnswerRe: GetServices permissions error with Windows2003 SP1 Pin
BambooMoon11-May-06 8:56
BambooMoon11-May-06 8:56 
GeneralRe: GetServices permissions error with Windows2003 SP1 Pin
Rendili12-May-06 3:18
Rendili12-May-06 3:18 
GeneralRe: GetServices permissions error with Windows2003 SP1 Pin
BambooMoon12-May-06 3:23
BambooMoon12-May-06 3:23 
GeneralRe: GetServices permissions error with Windows2003 SP1 Pin
Rendili12-May-06 8:30
Rendili12-May-06 8:30 
QuestionDatabase (MsAccess) Problem ? help please ... Pin
cmpeng3411-May-06 2:55
cmpeng3411-May-06 2:55 
AnswerRe: Database (MsAccess) Problem ? help please ... Pin
Wjousts11-May-06 3:03
Wjousts11-May-06 3:03 
Questioninteresting Advance C# exercise Pin
rockxuyenmandem11-May-06 2:46
rockxuyenmandem11-May-06 2:46 
HTTP has been In use by the WWW global Information Initiative since 1990 and nowadays It Is one of the most widely used protocols on the Internet
HTTP application have historically allowed three different formats for the representation of date/time stamps (described In RFC 2616)
1. RFC 1123 format, for example
Sun, 06 Nov 2005 08:49:37 GMT
2. RFC 1036 format, for example
Sunday, 06-Nov-05 08:49:37 GMT
3. ANSI C's asctime() format, for example
Sun Nov 6 08:49:37 2005

An Implementation Is not HTTP 1.1 compliant If It fails to understand one of the above date/time formats

Question 1
You are require to write an HTTP 1.1 compliant program to parse a string containing one of the above date/time formats. The program must detect the date/time format automatically based on the Input string and store the result In the following object
Class MyDate
{
public Int day; /*1 to 31*/
public Int month; /*1 to 12*/
public Int year; /*1970 to 9999*/
public Int hour; /*0 to 23*/
public Int minute; /*0 to 59*/
public Int second; /*0 to 59*/
public Int dayofweek; /* 0= Sun, 1=Mon,etc* /

}
Question 2
Develop a program to display the system date/time In the RFC 1123 format(as show In example)
=====================================================
I have no idea to do this exercise, please help me.
Thanks alot.
Good luck.




AnswerRe: interesting Advance C# exercise Pin
J4amieC11-May-06 2:48
J4amieC11-May-06 2:48 
GeneralRe: interesting Advance C# exercise Pin
rockxuyenmandem11-May-06 3:01
rockxuyenmandem11-May-06 3:01 
GeneralRe: interesting Advance C# exercise Pin
J4amieC11-May-06 4:44
J4amieC11-May-06 4:44 
AnswerRe: interesting Advance C# exercise Pin
Wjousts11-May-06 3:07
Wjousts11-May-06 3:07 
GeneralRe: interesting Advance C# exercise Pin
Le centriste11-May-06 5:10
Le centriste11-May-06 5:10 
GeneralRe: interesting Advance C# exercise Pin
J4amieC11-May-06 5:21
J4amieC11-May-06 5:21 
GeneralRe: interesting Advance C# exercise Pin
Le centriste11-May-06 5:22
Le centriste11-May-06 5:22 
GeneralRe: interesting Advance C# exercise Pin
Wjousts11-May-06 5:29
Wjousts11-May-06 5:29 
JokeRe: interesting Advance C# exercise Pin
Office Lineman11-May-06 6:02
Office Lineman11-May-06 6:02 
GeneralRe: interesting Advance C# exercise Pin
J4amieC11-May-06 6:07
J4amieC11-May-06 6:07 
AnswerRe: interesting Advance C# exercise Pin
LongRange.Shooter11-May-06 7:03
LongRange.Shooter11-May-06 7:03 
GeneralRe: interesting Advance C# exercise Pin
rockxuyenmandem11-May-06 23:40
rockxuyenmandem11-May-06 23:40 
Questionextract info from XML config files Pin
sean_mufc11-May-06 2:29
sean_mufc11-May-06 2:29 
Questionextract info from XML config files Pin
sean_mufc11-May-06 2:28
sean_mufc11-May-06 2:28 
AnswerRe: extract info from XML config files Pin
LongRange.Shooter11-May-06 7:04
LongRange.Shooter11-May-06 7:04 
GeneralRe: extract info from XML config files Pin
sean_mufc11-May-06 23:23
sean_mufc11-May-06 23:23 
AnswerRe: extract info from XML config files Pin
eric feng12-May-06 12:30
eric feng12-May-06 12:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.