W3cubDocs

/Haxe Python

Datetime

package python.lib.datetime

Available on python

Constructor

new (year:Int, month:Int, day:Int, hour:Int = 0, minute:Int = 0, second:Int = 0, microsecond:Int = 0, ?tzinfo:Tzinfo)

Variables

day:Int

hour:Int

microsecond:Int

minute:Int

month:Int

second:Int

tzinfo:Tzinfo

year:Int

Methods

isoweekday ():Int

replace (year:Int = 1970, month:Int = 1, day:Int = 1, hour:Int = 0, minute:Int = 0, ?second:Int, ?microsecond:Int, ?tzinfo:Tzinfo):Datetime

strftime (format:String):String

timestamp ():Float

timetuple ():StructTime

weekday ():Int

Static variables

static max:Datetime

static min:Datetime

static resolution:Timedelta

Static methods

static fromordinal (ordinal:Int):Datetime

static fromtimestamp (timestamp:Float, ?tzInfo:Tzinfo):Datetime

static now (?tzinfo:Tzinfo):Datetime

static today ():Datetime

static utcfromtimestamp (timestamp:Int):Datetime

static utcnow ():Datetime

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/python/lib/datetime/Datetime.html