Blogs

  • Browse Blogs
  • My Blog
  • My Updates

Tags Help

  • View as cloud  | list

Similar Entries

photo

New OpenNTF Project ...

Blog:  .Domino Frame...
Peter Presnell
Updated 
No Ratings 0     Comments 3
photo

Domino Framework 1.0...

Blog:  .Domino Frame...
Peter Presnell
Updated 
No Ratings 0     No Comments 0
photo

LotusScript v JavaSc...

Blog:  .Domino Frame...
Peter Presnell
Updated 
No Ratings 0     No Comments 0
photo

.Domino Framework e...

Blog:  .Domino Frame...
Peter Presnell
Updated 
No Ratings 0     Comments 2
photo

.Domino Framework Wi...

Blog:  .Domino Frame...
Peter Presnell
Updated 
No Ratings 0     No Comments 0

.Domino Framework

Blog Authors:  Peter Presnell  

Previous |  Main  | Next

Universal Time

Peter Presnell  |     |  Tags:  .dominoframework  |  Comments (0)

The following property has been added to the DominoDateTime class to allow a date/time value to be represented in a format consistent with ISO 8601's Universal Time (UTC).  This will be available as part of beta 0.4 later coming this month.

 

'/**
 ' * ISO Coordinated Universal Time (UTC) format for date
 ' */  
 Property Get UTC As String
  
  Dim UTCDayName As String
  Dim UTCDay    As String
  Dim UTCMonth   As String
  Dim UTCYear   As String
  Dim UTCTime   As String
  Dim UTCSign   As String
  Dim UTCZone   As String
  
  If iDate Is Nothing Then Exit Property
  
  UTCDayName$ = Format$(iDate.LSLocalTime, "ddd";)
  UTCDay$= Format$(iDate.LSLocalTime, "dd";)
  UTCMonth$ = Format$(iDate.LSLocalTime, "mmm";)
  UTCYear$ = Format$(iDate.LSLocalTime, "yyyy";)
  UTCTime$ = Format$(iDate.LSLocalTime, "hh:nn:ss";)
  If Sgn(iDate.TimeZone) < 0 Then UTCSign$ = "-" Else UTCSign$ = "+"
  If iDate.TimeZone < 10 Then UTCZone$ = "0" + Cstr(Abs(iDate.TimeZone)) Else UTCZone$ = Cstr(Abs(iDate.TimeZone))
  UTCZone$ = UTCSign$ + UTCZone$ + "00"
  UTC$ = UTCDayName$ + ", " + UTCDay$ + " " +UTCMonth$+ " " +UTCYear$ + " " +UTCTime$ + " " + UTCZone$
  
 End Property

Comments

Previous |  Main  | Next
Skip to main content link. Accesskey S
IBM Lotus Connections Help Tools About

Tags

A tag is a keyword that is used to categorize an entry. To view the entries with a particular tag, click a tag name or enter a tag in the box.
The tag cloud indicates the frequency of tag use. Popular tags appear darkest. The slider control adjusts how many tags are displayed in the tag cloud.