Skip to content

Conversation

@toywar
Copy link

@toywar toywar commented Oct 27, 2017

No description provided.

// Ваша реализация



Copy link
Collaborator

Choose a reason for hiding this comment

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

Не нужно столько переводов строк

var currentTime: String
let components = calendar.dateComponents([.hour, .minute], from: date as Date!)
var hour: String = String(describing: components.hour!)
var minute: String = String(describing: components.minute!)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Force castings

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