toLocaleString
Returns a locale-specific string representation of the date-time.
Parameters
- self:PlainDateTime
- PlainDateTime
- allocator:std.mem.Allocator
- std.mem.Allocator
Source
Implementation
pub fn toLocaleString(self: PlainDateTime, allocator: std.mem.Allocator) []const u8 {
const s = self.toString(allocator, .{}) catch return "PlainDateTime.toLocaleString error";
return s;
}