{"id":231,"date":"2006-12-29T15:43:05","date_gmt":"2006-12-29T14:43:05","guid":{"rendered":"http:\/\/www.galhano.com\/blog\/?p=231"},"modified":"2006-12-29T15:43:05","modified_gmt":"2006-12-29T14:43:05","slug":"classe-datetime","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=231","title":{"rendered":"Classe DateTime"},"content":{"rendered":"<p>A classe DateTime \u00c3\u00a9 membro do Namespace System, temos agora umas listas das<br \/>\npropriedades e m\u00c3\u00a9todos desta classe, e o formato que eles retornam.<\/p>\n<p><!--more--><\/p>\n<p><strong>Propriedades:<\/strong><br \/>\n<em><br \/>\nM\u00c3\u00a9todo, Valor retornado<\/em><\/p>\n<p>Date DateTime<br \/>\nDay Int32<br \/>\nDayOfWeek Int32<br \/>\nDayOfYear Int32<br \/>\nHour Int32<br \/>\nMillisecond Int32<br \/>\nMinute Int32<br \/>\nMonth Int32<br \/>\nNow DateTime<br \/>\nSecond Int32<br \/>\nTicks Int64<br \/>\nTimeOfDay TimeSpan<br \/>\nToday DateTime<br \/>\nYear Int32<br \/>\n<strong><br \/>\nM\u00c3\u00a9todos :<\/strong><\/p>\n<p>M\u00c3\u00a9todo, Valor retornado<br \/>\nAdd ( TimeSpan value ) DateTime<br \/>\nAddDays ( Double value ) DateTime<br \/>\nAddHours ( Double value ) DateTime<br \/>\nAddMilliseconds ( Double value ) DateTime<br \/>\nAddMinutes ( Double value ) DateTime<br \/>\nAddMonths ( Int32 months ) DateTime<br \/>\nAddSeconds ( Double value ) DateTime<br \/>\nAddTicks ( Int64 value ) DateTime<br \/>\nAddYears ( Int32 value )\u00c2  DateTime<br \/>\nCompare ( DateTime t1 , DateTime t2 ) Int32<br \/>\nCompareTo ( Object value ) Int32<br \/>\nDaysInMonth ( Int32 year , Int32 month ) Int32<br \/>\nEquals ( Object value ) Boolean<br \/>\nEquals ( DateTime t1 , DateTime t2 ) Boolean<br \/>\nFormat ( String format , IServiceObjectProvider sp ) String<br \/>\nFromFileTime ( Int64 fileTime ) DateTime<br \/>\nFromOADate ( Double d ) DateTime<br \/>\nFromString ( String s ) DateTime<br \/>\nGetAllDateTimes ( Char format , IServiceObjectProvider isop ) String[]<br \/>\nGetAllDateTimes ( IServiceObjectProvider isop ) String[]<br \/>\nGetAllDateTimes ( ) String[]<br \/>\nGetAllDateTimes ( Char format ) String[]<br \/>\nGetDateTimeFormats ( ) String[]<br \/>\nGetDateTimeFormats ( IServiceObjectProvider isop ) String[]<br \/>\nGetDateTimeFormats ( Char format , IServiceObjectProvider isop ) String[]<br \/>\nGetDateTimeFormats ( Char format ) String[]<br \/>\nGetHashCode ( ) Int32<br \/>\nGetTypeCode ( ) TypeCode<br \/>\nIsLeapYear ( Int32 year ) Boolean<br \/>\nParse ( String s , DateTimeFormatInfo dtfi ) DateTime<br \/>\nParse ( String s ) DateTime<br \/>\nParseExact ( String s , String format , DateTimeFormatInfo dtfi , DateTimeStyles<br \/>\nstyle ) DateTime<br \/>\nParseExact ( String s , String format , DateTimeFormatInfo dtfi ) DateTime<br \/>\nSubtract ( DateTime value ) TimeSpan<br \/>\nSubtract ( TimeSpan value ) DateTime<br \/>\nToBoolean ( ) Boolean<br \/>\nToByte ( ) Byte<br \/>\nToChar ( ) Char<br \/>\nToDateTime ( ) DateTime<br \/>\nToDecimal ( ) Decimal<br \/>\nToDouble ( ) Double<br \/>\nToFileTime ( ) Int64<br \/>\nToInt16 ( ) Int16<br \/>\nToInt32 ( ) Int32<br \/>\nToInt64 ( ) Int64<br \/>\nToLocalTime ( ) DateTime<br \/>\nToLongDateString ( ) String<br \/>\nToLongTimeString ( ) String<br \/>\nToOADate ( ) Double<br \/>\nToSByte ( ) SByte<br \/>\nToShortDateString ( ) String<br \/>\nToShortTimeString ( ) String<br \/>\nToSingle ( ) Single<br \/>\nToString ( ) String<br \/>\nToString ( DateTime dt ) String<br \/>\nToType ( Type type ) Object<br \/>\nToUInt16 ( ) UInt16<br \/>\nToUInt32 ( ) UInt32<br \/>\nToString ( DateTime dt ) String<br \/>\nToType ( Type type ) Object<br \/>\nToUInt16 ( ) UInt16<br \/>\nToUInt32 ( ) UInt32<br \/>\nToUInt64 ( ) UInt64<br \/>\nToUniversalTime ( ) DateTime<\/p>\n<p>Esperemos que fique elucidado em rela\u00c3\u00a7\u00c3\u00a3o a esta classe, mexer com datas e Horas est\u00c3\u00a1 mais potente que nunca.<\/p>\n<p>Escrito por Jo\u00c3\u00a3o Vieira<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A classe DateTime \u00c3\u00a9 membro do Namespace System, temos agora umas listas das propriedades e m\u00c3\u00a9todos desta classe, e o formato que eles retornam.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-231","post","type-post","status-publish","format-standard","hentry","category-aspnet","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=231"}],"version-history":[{"count":0,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/231\/revisions"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}