Skip to content

Instantly share code, notes, and snippets.

@iltercengiz
Created November 23, 2014 09:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iltercengiz/1a278305e623474d1449 to your computer and use it in GitHub Desktop.
Save iltercengiz/1a278305e623474d1449 to your computer and use it in GitHub Desktop.
// Playground - noun: a place where people can play
import UIKit
import Foundation
let timeInterval = NSDate().timeIntervalSince1970
let date = NSDate(timeIntervalSince1970: timeInterval)
let dateFormatter = NSDateFormatter()
dateFormatter.dateFormat = "MMMM"
dateFormatter.locale = NSLocale(localeIdentifier: "tr")
let turkishDateString = dateFormatter.stringFromDate(date)
dateFormatter.locale = NSLocale(localeIdentifier: "en")
let englishDateString = dateFormatter.stringFromDate(date)
dateFormatter.locale = NSLocale(localeIdentifier: "ru")
let russianDateString = dateFormatter.stringFromDate(date)
dateFormatter.locale = NSLocale(localeIdentifier: "fr")
let frenchDateString = dateFormatter.stringFromDate(date)
dateFormatter.locale = NSLocale(localeIdentifier: "es")
let spanishDateString = dateFormatter.stringFromDate(date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment