SBM ModScript Reference → Programming SBM ModScript → Object Types → TimePoint
Provides a breakdown of a point in time based on a time zone.
TimePoint does not inherit from any object type.
var v1 = TimeMillis( 1516667515006ll ).ToTimePoint( CreateTimeZone("MST") ); var dayOfWeek = v1.getDayOfWeek(); var fr = CreateLocale("fr"); // Create French locale Ext.WriteStream( fr.GetDayOfWeekName(dayOfWeek) ); // Output day of week using French locale
Result:
lundi
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.