// This is a generated file. Not intended for manual editing.
package com.haskforce.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.util.PsiTreeUtil;
import static com.haskforce.psi.HaskellTypes.*;
import com.haskforce.psi.HaskellTypes.*;
public class HaskellRefExpr extends HaskellPsiElement {
public HaskellRefExpr() {
}
public HaskellRefExpr(@NotNull ASTNode node) {
super(node);
}
public void accept(@NotNull HaskellVisitor visitor) {
visitor.visitRefExpr(this);
}
public void accept(@NotNull PsiElementVisitor visitor) {
if (visitor instanceof HaskellVisitor) accept((HaskellVisitor)visitor);
else super.accept(visitor);
}
@Override
@NotNull
public List getTypeArguments() {
return PsiTreeUtil.getChildrenOfTypeAsList(this, HaskellType.class);
}
}
Q:
NSDateComponentsFormatter with wrong time zone
I have this code, where I want to change timeZone to something like "-1", which will be Paris, +1 will be London.
I have tried this:
NSTimeZone *timeZone = [[NSTimeZone alloc] initTimeZoneWithName:@"Europe/London"];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setTimeZone:timeZone];
NSDate *now = [NSDate date];
NSDate *date = [dateFormat dateFromString:@"12/11/2013 14:40:11"];
NSDateComponents *components = [NSDateComponents new];
[components set be359ba680
Related links:
Comments