Skip to content

RPG - saga Boleslav piguta#54

Open
MrColteR wants to merge 6 commits intoISUCT:Boleslav_Pigutafrom
MrColteR:Boleslav_Piguta
Open

RPG - saga Boleslav piguta#54
MrColteR wants to merge 6 commits intoISUCT:Boleslav_Pigutafrom
MrColteR:Boleslav_Piguta

Conversation

@MrColteR
Copy link

No description provided.

public void DataAfter()
{
DateTime a = new DateTime(20, 12, 12);
DateTime b = new DateTime(20, 12, 13);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А если дата А 10 год?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а если 2020? и 1996?

int years = zeroTime.Year - olddate.Year;
int months = zeroTime.Month - olddate.Month;
int days = zeroTime.Day - olddate.Day;
return $"years = {years}, months = {months}, days = {days}";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не совсем правильно вычитать таким образом


public static string Date(DateTime olddate, DateTime zeroTime)
{
Console.WriteLine(olddate);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

@jskonst jskonst changed the title Boleslav piguta RPG - saga Boleslav piguta Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants